diff --git a/libs/parser/rules/pslang.l b/libs/parser/rules/pslang.l index 8d0206b..9d7b33e 100644 --- a/libs/parser/rules/pslang.l +++ b/libs/parser/rules/pslang.l @@ -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); }