Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct some lexer errors #4

Merged
merged 1 commit into from
Dec 11, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/lex.l
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ if{TRAIL} return keyword_if;
break{TRAIL} return keyword_break;
emit{TRAIL} return keyword_emit;
return{TRAIL} return keyword_return;
nil{TRAIL} return keyword_if;
true{TRAIL} return keyword_false;
nil{TRAIL} return keyword_nil;
true{TRAIL} return keyword_true;
false{TRAIL} return keyword_false;

[A-Za-z_][A-Za-z0-9_]* {
yylval->str = strdup(yytext);
Expand Down