diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-14 02:52:07 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-14 02:52:07 +0000 |
| commit | d5851e995363e6f637a5f35cafe3ddaf8934705a (patch) | |
| tree | d3d2b1b5474ca3c33e3025420152f7384572e977 /plugin/examples/highlighting.cps | |
| parent | 0e83581ed907aee1f6e59524c7d28b6f9c016f8e (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/highlighting.cps')
| -rw-r--r-- | plugin/examples/highlighting.cps | 6 |
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 |
