diff options
Diffstat (limited to '')
| -rw-r--r-- | src/parser.l | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/src/parser.l b/src/parser.l index 1743dd6..8bc687d 100644 --- a/src/parser.l +++ b/src/parser.l | |||
| @@ -15,7 +15,7 @@ | |||
| 15 | 15 | ||
| 16 | %x sitname | 16 | %x sitname | 
| 17 | %x comment | 17 | %x comment | 
| 18 | %x dqstr tdqstr tsqstr | 18 | %x dqstr sqstr tdqstr tsqstr | 
| 19 | %% | 19 | %% | 
| 20 | 20 | ||
| 21 | "<=" { return tokLtEq; } | 21 | "<=" { return tokLtEq; } | 
| @@ -96,6 +96,10 @@ null { return tokNull; } | |||
| 96 | <dqstr>[^"]+ { (*yylval->sValue) += yytext; } | 96 | <dqstr>[^"]+ { (*yylval->sValue) += yytext; } | 
| 97 | <dqstr>\" { BEGIN( INITIAL ); return tokString; } | 97 | <dqstr>\" { BEGIN( INITIAL ); return tokString; } | 
| 98 | 98 | ||
| 99 | \' { BEGIN( sqstr ); yylval->sValue = new Bu::String(); } | ||
| 100 | <sqstr>[^']+ { (*yylval->sValue) += yytext; } | ||
| 101 | <sqstr>\' { BEGIN( INITIAL ); return tokString; } | ||
| 102 | |||
| 99 | [ \t]+ { | 103 | [ \t]+ { | 
| 100 | yylloc->first_line = yylloc->last_line; | 104 | yylloc->first_line = yylloc->last_line; | 
| 101 | yylloc->first_column = yylloc->last_column+1; | 105 | yylloc->first_column = yylloc->last_column+1; | 
