Skip to content

Commit

Permalink
Add \' as a string constant to block macro expansion.
Browse files Browse the repository at this point in the history
This patch allows you to type "The \`define is `value" and not have
Icarus try to expand `define as a macro.
  • Loading branch information
caryr authored and steveicarus committed Mar 12, 2008
1 parent 2346482 commit 377f5ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ivlpp/lexor.lex
Expand Up @@ -253,7 +253,8 @@ keywords (include|define|undef|ifdef|ifndef|else|elseif|endif)
* string.
*/
\" { string_enter = YY_START; BEGIN(CSTRING); ECHO; }
<CSTRING>\\\" { ECHO; }
<CSTRING>\\\" |
<CSTRING>\\` { ECHO; }
<CSTRING>\r\n |
<CSTRING>\n\r |
<CSTRING>\n |
Expand Down

0 comments on commit 377f5ea

Please sign in to comment.