lang: The in keyword can't be a variable name
At least for now until we figure out some fancier parser magic. (If at all possible!)
This commit is contained in:
@@ -139,6 +139,11 @@
|
||||
lval.str = yylex.Text()
|
||||
return NOT
|
||||
}
|
||||
/in/ {
|
||||
yylex.pos(lval) // our pos
|
||||
lval.str = yylex.Text()
|
||||
return IN
|
||||
}
|
||||
/\->/ {
|
||||
yylex.pos(lval) // our pos
|
||||
lval.str = yylex.Text()
|
||||
@@ -306,11 +311,6 @@
|
||||
lval.str = yylex.Text()
|
||||
return IDENTIFIER
|
||||
}
|
||||
/in/ {
|
||||
yylex.pos(lval) // our pos
|
||||
lval.str = yylex.Text()
|
||||
return IN
|
||||
}
|
||||
/[A-Z]([a-z0-9_]*[a-z0-9]+)?/
|
||||
{
|
||||
yylex.pos(lval) // our pos
|
||||
|
||||
Reference in New Issue
Block a user