aboutsummaryrefslogtreecommitdiff
path: root/plugin/examples/highlighting.cps
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-21 10:29:27 +0000
committer_ov4 <ov4@ov4.org>2026-10-21 10:29:27 +0000
commit9939ebe7f0ec25b042c9d83ed651cde0e2ea3a30 (patch)
tree7dc877a16689d04ba80cab03ad544533d3a50e2d /plugin/examples/highlighting.cps
parent3cdb5d202faf04993e5aad955078653251cb6073 (diff)
feat(plugin): highlight supported keywords and directives
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'plugin/examples/highlighting.cps')
-rw-r--r--plugin/examples/highlighting.cps8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugin/examples/highlighting.cps b/plugin/examples/highlighting.cps
index 7b30bb7..b5deaee 100644
--- a/plugin/examples/highlighting.cps
+++ b/plugin/examples/highlighting.cps
@@ -6,6 +6,8 @@ TYPE Student
DECLARE Initial : CHAR
ENDTYPE
+CONSTANT Limit = 3
+
DECLARE Values : ARRAY[1:3] OF INTEGER
DECLARE Index : INTEGER
DECLARE Total : REAL
@@ -45,3 +47,9 @@ TRY
CATCH
OUTPUT "Caught an exception"
ENDTRY
+
+CASE OF Index
+ 1 : OUTPUT "First"
+ 2 TO Limit : OUTPUT "In range"
+ OTHERWISE : OUTPUT "Other"
+ENDCASE