Skip to content

Commit d60a671

Browse files
authored
[ENHANCE] Add new trycatch, throw, continue and entityscale syntax (#2)
2 parents 655c89b + c217b44 commit d60a671

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,12 @@ See contributed settings in the `Feature Contributions` tab.
7676
- Multiple open folders are not supported, they might falsely collide with each other
7777
- Information provided on hover might be incorrect if there are more than one objects with the same name (like a function and a type)
7878
- Type checking is limited as of now
79+
80+
#### Build Instructions
81+
1. nvm use 22.10.0
82+
1. npm install
83+
1. npm run build
84+
1. Open VSCode
85+
1. Press Ctrl+Shift+P
86+
1. Type "Install from VSIX"
87+
1. Select the blitzforge .vsix file

syntaxes/blitzforge.tmLanguage.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"keywords": {
2222
"patterns": [{
2323
"name": "keyword.control.bb",
24-
"match": "(?i)\\b(if|then|else|elseif|endif|select|case|default|end|repeat|until|forever|while|wend|for|to|step|next|exit|goto|gosub|return|function|dim|type|field|new|each|first|last|before|after|insert|delete|data|read|restore|include|null|test|method|strict|enablegc|disablegc|assert)\\b"
24+
"match": "(?i)\\b(if|then|else|elseif|endif|select|case|default|end|repeat|until|forever|while|wend|for|to|step|next|exit|continue|goto|gosub|return|function|dim|type|field|new|each|first|last|before|after|insert|delete|data|read|restore|include|null|test|method|strict|enablegc|disablegc|assert)\\b"
2525
},
2626
{
2727
"name": "constant.language.bool.bb",
@@ -109,7 +109,7 @@
109109
},
110110
{
111111
"name": "support.function.builtin.2d.system.bb",
112-
"match": "(?i)\\b((show|hide)pointer|apptitle|commandline|systemproperty|(set|get)env|calldll|execfile|runtimeerror|end|functionptr|await|call|async|poll|asyncthen|refcount|recast|ptr|self)\\b"
112+
"match": "(?i)\\b((show|hide)pointer|apptitle|commandline|systemproperty|(set|get)env|calldll|execfile|runtimeerror|end|functionptr|await|call|async|poll|asyncthen|refcount|recast|ptr|self|trycatch|throw)\\b"
113113
},
114114
{
115115
"name": "support.function.builtin.2d.debug.bb",
@@ -189,7 +189,7 @@
189189
},
190190
{
191191
"name": "support.function.builtin.3d.entity.state.bb",
192-
"match": "(?i)\\b(entity(x|y|z|roll|yaw|pitch|class|name|pick|visible|distance)|countchildren|(get|find)child|linepick|delta(yaw|pitch)|tform(point|vector|normal|ed(x|y|z))|getmatelement)\\b"
192+
"match": "(?i)\\b(entity(x|y|z|roll|yaw|pitch|class|name|pick|visible|distance)|entityscale(x|y|z)|countchildren|(get|find)child|linepick|delta(yaw|pitch)|tform(point|vector|normal|ed(x|y|z))|getmatelement)\\b"
193193
},
194194
{
195195
"name": "support.function.builtin.3d.entity.collision.bb",

0 commit comments

Comments
 (0)