Skip to content
Snippets Groups Projects
Commit 66ed8c1a authored by Jan Trávníček's avatar Jan Trávníček
Browse files

interpret some escape sequences in cli lexer

parent 4a7b48ea
No related branches found
No related tags found
No related merge requests found
......@@ -201,7 +201,16 @@ q5: if ( m_index >= m_line.size ( ) ) {
return res;
}
 
res.m_value += m_line [ m_index ];
if ( m_line [ m_index ] == 'n' ) {
res.m_value += '\n';
} else if ( m_line [ m_index ] == 't' ) {
res.m_value += '\t';
} else if ( m_line [ m_index ] == '"' ) {
res.m_value += '"';
} else {
res.m_value += m_line [ m_index ];
}
m_index++;
goto q4;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment