aboutsummaryrefslogtreecommitdiff
path: root/tests/i/underscore-identifiers/program.cps
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-18 08:02:20 +0000
committer_ov4 <ov4@ov4.org>2026-10-18 08:02:20 +0000
commit34a4998658674411ef3b5a392483990467a5d6e2 (patch)
treeace5773a4890ffb88d8f3338f9938d4dfa929804 /tests/i/underscore-identifiers/program.cps
parente7320359c12b97ccb85ebfb06b2540124630df7b (diff)
feat(lexer): accept identifiers starting with an underscore
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/i/underscore-identifiers/program.cps')
-rw-r--r--tests/i/underscore-identifiers/program.cps9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/i/underscore-identifiers/program.cps b/tests/i/underscore-identifiers/program.cps
new file mode 100644
index 0000000..60d7b32
--- /dev/null
+++ b/tests/i/underscore-identifiers/program.cps
@@ -0,0 +1,9 @@
+CLASS _EXP_FOO
+ _Value : INTEGER
+ENDCLASS
+FUNCTION _Read(_Arg : INTEGER) RETURNS INTEGER
+ RETURN _Arg + 1
+ENDFUNCTION
+DECLARE _X : _EXP_FOO
+_X._Value <- _Read(41)
+OUTPUT _X._Value