aboutsummaryrefslogtreecommitdiff
path: root/lib/forlanlex.l
diff options
context:
space:
mode:
Diffstat (limited to 'lib/forlanlex.l')
-rw-r--r--lib/forlanlex.l7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/forlanlex.l b/lib/forlanlex.l
index 99966ed..e3f9f26 100644
--- a/lib/forlanlex.l
+++ b/lib/forlanlex.l
@@ -66,6 +66,11 @@ IDC [a-zA-Z_0-9-]
if return IF;
else return ELSE;
last return LAST;
+for return FOR;
+let return LET;
+in return IN;
+break return BREAK;
+continue return CONTINUE;
! return NOT;
"&&" return AND;
"||" return OR;
@@ -98,7 +103,7 @@ last return LAST;
/* Other tokens */
{WS} ;
\n { grecs_locus_point_advance_line(grecs_current_locus_point); }
-[.,;{}()\[\]] return yytext[0];
+[.,;{}()\[\]=\*%] return yytext[0];
. { if (isascii(yytext[0]) && isprint(yytext[0]))
grecs_error(&yylloc, 0,
_("stray character %c"), yytext[0]);

Return to:

Send suggestions and report system problems to the System administrator.