diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lexer.l | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lexer.l b/src/lexer.l index 91606c6..9e8aaf8 100644 --- a/src/lexer.l +++ b/src/lexer.l @@ -72,7 +72,7 @@ QString filepath; %option noyywrap %x comment string -%x include path +%x include DIGIT [0-9] @@ -80,9 +80,9 @@ DIGIT [0-9] include[ \t\r\n>]*"<" { BEGIN(include); } <include>{ -<path>[^\t\r\n>]+"/" { filepath = yytext; } -<path>[^\t\r\n>/]+ { filename = yytext; } -<path>">" { BEGIN(INITIAL); includefile(); } +[^\t\r\n>]+"/" { filepath = yytext; } +[^\t\r\n>/]+ { filename = yytext; } +">" { BEGIN(INITIAL); includefile(); } } |