diff options
Diffstat (limited to 'lib/forlanlex.l')
-rw-r--r-- | lib/forlanlex.l | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/forlanlex.l b/lib/forlanlex.l index c3797dd..8b3d29a 100644 --- a/lib/forlanlex.l +++ b/lib/forlanlex.l @@ -66,6 +66,11 @@ IDC [a-zA-Z_0-9-] <COMMENT>\n grecs_locus_point_advance_line(grecs_current_locus_point); <COMMENT>"*"+"/" BEGIN(INITIAL); "//".* ; + /* Decimal numbers */ +[0-9][0-9]* { grecs_line_begin(); + grecs_line_add(yytext, yyleng); + yylval.string = grecs_line_finish(); + return STRING; } /* Keywords */ if return IF; else return ELSE; |