aboutsummaryrefslogtreecommitdiff
path: root/plugin/examples
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-14 02:52:07 +0000
committer_ov4 <ov4@ov4.org>2026-10-14 02:52:07 +0000
commitd5851e995363e6f637a5f35cafe3ddaf8934705a (patch)
treed3d2b1b5474ca3c33e3025420152f7384572e977 /plugin/examples
parent0e83581ed907aee1f6e59524c7d28b6f9c016f8e (diff)
feat(plugin): highlight exception keywords with C++ scopes
Reuse C++ try, catch and throw scopes for exception keywords, with ENDTRY sharing the TRY scope. Add an example and verify keyword boundaries, case sensitivity, comments and strings with TextMate tokenization. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'plugin/examples')
-rw-r--r--plugin/examples/highlighting.cps6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/examples/highlighting.cps b/plugin/examples/highlighting.cps
index 9925bf3..7b30bb7 100644
--- a/plugin/examples/highlighting.cps
+++ b/plugin/examples/highlighting.cps
@@ -39,3 +39,9 @@ ENDPROCEDURE
OPENFILE "example.txt" FOR WRITE
WRITEFILE "example.txt", Text
CLOSEFILE "example.txt"
+
+TRY
+ THROW
+CATCH
+ OUTPUT "Caught an exception"
+ENDTRY