aboutsummaryrefslogtreecommitdiff
path: root/plugin/syntaxes/cie-pseudocode.tmLanguage.json
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/syntaxes/cie-pseudocode.tmLanguage.json
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/syntaxes/cie-pseudocode.tmLanguage.json')
-rw-r--r--plugin/syntaxes/cie-pseudocode.tmLanguage.json12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugin/syntaxes/cie-pseudocode.tmLanguage.json b/plugin/syntaxes/cie-pseudocode.tmLanguage.json
index cf1957f..fe3582c 100644
--- a/plugin/syntaxes/cie-pseudocode.tmLanguage.json
+++ b/plugin/syntaxes/cie-pseudocode.tmLanguage.json
@@ -9,6 +9,18 @@
"include": "#strings"
},
{
+ "match": "(?<!\\w)(?:TRY|ENDTRY)(?!\\w)",
+ "name": "keyword.control.try.cpp"
+ },
+ {
+ "match": "(?<!\\w)CATCH(?!\\w)",
+ "name": "keyword.control.catch.cpp"
+ },
+ {
+ "match": "(?<!\\w)THROW(?!\\w)",
+ "name": "keyword.control.throw.cpp"
+ },
+ {
"match": "(?<!\\w)(?:IF|THEN|ELSE|ENDIF|WHILE|DO|ENDWHILE|REPEAT|UNTIL|FOR|TO|STEP|NEXT|RETURN|CALL)(?!\\w)",
"name": "keyword.control.cie-pseudocode"
},