From 1f3c495acfee9b4da7458de6ef36a8d76cbda3e8 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Wed, 17 Dec 2025 13:55:18 +0300 Subject: [PATCH] Support uppercase letters and decimal digits in identifier names --- libs/parser/rules/pslang.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }