From 9939ebe7f0ec25b042c9d83ed651cde0e2ea3a30 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Wed, 21 Oct 2026 10:29:27 +0000 Subject: feat(plugin): highlight supported keywords and directives Co-Authored-By: Claude Opus 5.5 --- plugin/examples/highlighting.cps | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugin/examples/highlighting.cps') 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 -- cgit v1.3.1-4-g156e