Skip to content

Commit 51d71cf

Browse files
committed
add TRY CATCH, fix Executor
1 parent c11889f commit 51d71cf

3 files changed

Lines changed: 13 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,13 @@ All notable changes to the "TriggerReactor-VSCode" extension will be documented
2222
### Fixed
2323

2424
- Fixed a `FINNALY` was not highlighted.
25+
26+
## [1.0.2] - 2023-09-22
27+
28+
### Added
29+
30+
- Add language highlighter `SWITCH statements`
31+
32+
### Fixed
33+
34+
- Fixed one line Executor was not highlighted, ex) CASE => #MESSAGE "a" <- not highlighted Executor

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Support for TriggerReactor scripts",
55
"icon": "icons/TRGLogo.png",
66
"repository": "https://github.com/Cupelt/triggerreactor-vscode",
7-
"version": "1.0.1-Release",
7+
"version": "1.0.2-Release",
88
"publisher": "TriggerReactor",
99
"engines": {
1010
"vscode": "*"

syntaxes/triggerreactor.tmLanguage.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,12 @@
4343
"patterns": [
4444
{
4545
"name": "keyword.control.TriggerReactor",
46-
"match": "\\b(IF|ELSE|ELSEIF|ENDIF|IS|WHILE|ENDWHILE|FOR|ENDFOR|TRY|CATCH|FINALLY|ENDTRY|LAMBDA|ENDLAMBDA)\\b"
47-
},
48-
{
49-
"name": "keyword.control.TriggerReactor",
50-
"match": "\\b(if|else|elseif|endif|is|while|endwhile|for|endfor|try|catch|finally|endtry|lambda|endlambda)\\b"
46+
"match": "\\b(IF|ELSE|ELSEIF|ENDIF|IS|WHILE|ENDWHILE|FOR|ENDFOR|TRY|CATCH|FINALLY|ENDTRY|LAMBDA|ENDLAMBDA|SWITCH|CASE|DEFAULT|ENDSWITCH)\\b"
5147
},
5248
{
5349
"name": "entity.name.namespace",
5450
"match": "\\b(SYNC|ENDSYNC|ASYNC|ENDASYNC)\\b"
5551
},
56-
{
57-
"name": "entity.name.namespace",
58-
"match": "\\b(sync|endsync|async|endasync)\\b"
59-
},
6052
{
6153
"name": "keyword.control.ternary.TriggerReactor",
6254
"match": "\\?|:"
@@ -135,7 +127,7 @@
135127
},
136128
"executors": {
137129
"name": "entity.other.inherited-class.triggerreactor",
138-
"match": "^\\s*#[A-Z|a-z]+"
130+
"match": "#[A-Z|a-z]+\\s"
139131
},
140132
"placeholders": {
141133
"name" : "variable.parameter",

0 commit comments

Comments
 (0)