Support uppercase letters and decimal digits in identifier names
This commit is contained in:
parent
41d3bb0f3d
commit
1f3c495acf
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ u64 { return bp::make_u64(ctx.location); }
|
|||
f32 { return bp::make_f32(ctx.location); }
|
||||
f64 { return bp::make_f64(ctx.location); }
|
||||
|
||||
[a-z]+ { return bp::make_name(yytext, ctx.location); }
|
||||
[a-zA-Z_]+[a-zA-Z0-9_]* { return bp::make_name(yytext, ctx.location); }
|
||||
|
||||
"\n" { ctx.location.lines(1); return bp::make_newline(ctx.location); }
|
||||
"\t" { return bp::make_indent(ctx.location); }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue