Skip to content

Commit 74c3974

Browse files
committed
Adapt groovy highlights to helix syntax
1 parent e48b49f commit 74c3974

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

runtime/queries/groovy/highlights.scm

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,31 @@
1919
"else"
2020
"if"
2121
"switch"
22-
] @keyword.conditional
22+
] @keyword.control.conditional
2323

2424
[
2525
"catch"
2626
"finally"
2727
"try"
28-
] @keyword.exception
28+
] @keyword.control.exception
2929

3030
"def" @keyword.function
3131

32-
"import" @keyword.import
32+
"import" @keyword.control.import
3333

3434
[
3535
"for"
3636
"while"
3737
(break)
3838
(continue)
39-
] @keyword.repeat
39+
] @keyword.control.repeat
4040

41-
"return" @keyword.return
41+
"return" @keyword.control.return
4242

4343
[
4444
"true"
4545
"false"
46-
] @boolean
46+
] @constant.builtin.boolean
4747

4848
(null) @constant.builtin
4949

@@ -67,16 +67,16 @@
6767
"public"
6868
"static"
6969
"synchronized"
70-
] @type.qualifier
70+
] @keyword.storage.modifier
7171

72-
(comment) @comment @spell
72+
(comment) @comment
7373

7474
(shebang) @keyword.directive
7575

7676
(string) @string
7777

7878
(string
79-
(escape_sequence) @string.escape)
79+
(escape_sequence) @constant.character.escape)
8080

8181
(string
8282
(interpolation
@@ -97,7 +97,7 @@
9797
"."
9898
] @punctuation.delimiter
9999

100-
(number_literal) @number
100+
(number_literal) @constant.numeric
101101

102102
(identifier) @variable
103103

@@ -154,7 +154,7 @@
154154
([
155155
"?"
156156
":"
157-
]) @keyword.conditional.ternary)
157+
]) @keyword.operator)
158158

159159
(map
160160
(map_item
@@ -250,19 +250,19 @@
250250

251251
"@interface" @function.macro
252252

253-
(groovy_doc) @comment.documentation @spell
253+
(groovy_doc) @comment.block.documentation
254254

255255
(groovy_doc
256256
[
257257
(groovy_doc_param)
258258
(groovy_doc_throws)
259259
(groovy_doc_tag)
260-
] @string.special @nospell)
260+
] @string.special)
261261

262262
(groovy_doc
263263
(groovy_doc_param
264-
(identifier) @variable.parameter) @nospell)
264+
(identifier) @variable.parameter))
265265

266266
(groovy_doc
267267
(groovy_doc_throws
268-
(identifier) @type @nospell))
268+
(identifier) @type))

0 commit comments

Comments
 (0)