Skip to content

Commit e7d3f45

Browse files
committed
VERSION 1.4.0
1 parent 9f5db32 commit e7d3f45

File tree

3 files changed

+38
-22
lines changed

3 files changed

+38
-22
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "GZDoom's ZScript scripting language support for VSCode",
55
"publisher": "kaptainmicila",
66
"icon": "icons/GZDoom.png",
7-
"version": "1.3.1",
7+
"version": "1.4.0",
88
"repository": {
99
"type": "git",
1010
"url": "https://github.com/KaptainMicila/ZScript-VSCode.git"

syntaxes/acs.tmLanguage.json

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
"patterns": [
3333
{
3434
"name": "comment.line.double-slash.acs",
35-
"begin": "\\/\\/",
35+
"begin": "//",
3636
"end": "$",
3737
"contentName": "comment.line.double-slash.text.acs"
3838
},
3939
{
4040
"name": "comment.block.acs",
41-
"begin": "\\/\\*",
42-
"end": "\\*\\/",
41+
"begin": "/\\*",
42+
"end": "\\*/",
4343
"contentName": "comment.block.text.acs"
4444
}
4545
]
@@ -48,13 +48,13 @@
4848
"patterns": [
4949
{
5050
"name": "string.quoted.double.acs",
51-
"begin": "\"",
52-
"end": "\""
51+
"begin": "(?<!\\\\)\"",
52+
"end": "(?<!\\\\)\""
5353
},
5454
{
5555
"name": "string.quoted.single.acs",
56-
"begin": "'",
57-
"end": "'"
56+
"begin": "(?<!\\\\)'",
57+
"end": "(?<!\\\\)'"
5858
}
5959
]
6060
},
@@ -90,15 +90,19 @@
9090
},
9191
{
9292
"name": "keyword.operator.acs",
93-
"match": "(?:\\+\\+?|--?|\\*|\\/|%|<=?|>=?|&&|\\|\\|)"
93+
"match": "(?:[*\\/%|=^~]=?|[+\\-<>&!]{1,2}=?|:)"
9494
}
9595
]
9696
},
9797
"types": {
9898
"patterns": [
9999
{
100100
"name": "constant.numeric.acs",
101-
"match": "\\b\\d+?\\b"
101+
"match": "\\d+"
102+
},
103+
{
104+
"name": "constant.hexadecimal.acs",
105+
"match": "\\s0[xX][0-9a-fA-F]+"
102106
},
103107
{
104108
"name": "constant.acs",
@@ -115,26 +119,34 @@
115119
]
116120
},
117121
"functions": {
118-
"name": "entity.name.function.acs",
119-
"match": "\\w+?(?=\\s*?\\()"
122+
"patterns": [
123+
{
124+
"name": "entity.name.function.acs",
125+
"match": "\\w+(?=\\s*\\()"
126+
},
127+
{
128+
"name": "variable.parameter",
129+
"match": "\\w:"
130+
}
131+
]
120132
},
121133
"directives": {
122134
"patterns": [
123135
{
124-
"name": "keyword.control.include.acs",
125-
"match": "^\\#include\\b"
136+
"name": "keyword.control.directive.acs",
137+
"match": "^\\#(?:include|define|library)\\b"
126138
}
127139
]
128140
},
129141
"variable": {
130142
"patterns": [
131143
{
132-
"name": "variable.parameter.zscript",
133-
"match": "(?<=\\w+?[\\[\\]]??\\.)\\w+?\\b"
144+
"name": "variable.parameter.acs",
145+
"match": "(?<=\\w+[\\[\\]]?\\.)\\w+\\b"
134146
},
135147
{
136-
"name": "variable.other.zscript",
137-
"match": "\\b\\w+?\\b"
148+
"name": "variable.other.acs",
149+
"match": "\\b\\w+\\b"
138150
}
139151
]
140152
}

syntaxes/zscript.tmLanguage.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@
7070
"patterns": [
7171
{
7272
"name": "string.quoted.double.zscript",
73-
"begin": "\"",
74-
"end": "\""
73+
"begin": "(?<!\\\\)\"",
74+
"end": "(?<!\\\\)\""
7575
},
7676
{
7777
"name": "string.quoted.single.zscript",
78-
"begin": "'",
79-
"end": "'"
78+
"begin": "(?<!\\\\)'",
79+
"end": "(?<!\\\\)'"
8080
}
8181
]
8282
},
@@ -110,6 +110,10 @@
110110
"name": "constant.numeric.zscript",
111111
"match": "\\b\\d+?\\b"
112112
},
113+
{
114+
"name": "constant.hexadecimal.zscript",
115+
"match": "\\s0[xX][0-9a-fA-F]+"
116+
},
113117
{
114118
"name": "constant.zscript",
115119
"match": "\\b[A-Z_0-9]+?\\b"

0 commit comments

Comments
 (0)