lang: parser: Lexer should allow in keyword as a variable name
We move it downwards to allow this case. Whether we want to allow this long-term or not is to be decided.
This commit is contained in:
@@ -139,11 +139,6 @@
|
||||
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,6 +301,11 @@
|
||||
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