Support uppercase letters and decimal digits in identifier names

This commit is contained in:
Nikita Lisitsa 2025-12-17 13:55:18 +03:00
parent 41d3bb0f3d
commit 1f3c495acf

View file

@ -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); }