Skip to content

Commit a71ac61

Browse files
authored
fix(gdscript/jai): Replace with supported faces (#229)
* fix(gdscript/jai): Replace with supported face * imp hl * Update jai * update query * hl param
1 parent 262d000 commit a71ac61

File tree

3 files changed

+52
-15
lines changed

3 files changed

+52
-15
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
## Unreleased
4+
- Replace with supported faces for `GDScript` and `Jai`
45

56
## 0.12.32 - 2023-09-01
67

queries/gdscript/highlights.scm

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
(null) @constant
1313
(setter) @function
1414
(getter) @function
15-
(set_body "set" @keyword.function)
16-
(get_body "get" @keyword.function)
15+
(set_body "set" @keyword)
16+
(get_body "get" @keyword)
1717
(static_keyword) @type.qualifier
1818
(tool_statement) @keyword
1919
(breakpoint_statement) @debug
@@ -91,9 +91,9 @@
9191

9292
["," "." ":"] @punctuation.delimiter
9393

94-
["if" "elif" "else" "match"] @conditional
94+
["if" "elif" "else" "match"] @keyword
9595

96-
["for" "while" "break" "continue"] @repeat
96+
["for" "while" "break" "continue"] @keyword
9797

9898
[
9999
"~"
@@ -135,7 +135,7 @@
135135
"is"
136136
"not"
137137
"or"
138-
] @keyword.operator
138+
] @keyword
139139

140140
[
141141
"pass"
@@ -156,11 +156,11 @@
156156
"puppetsync"
157157
] @keyword
158158

159-
"func" @keyword.function
159+
"func" @keyword
160160

161161
[
162162
"return"
163-
] @keyword.return
163+
] @keyword
164164

165165
[
166166
"await"

queries/jai/highlights.scm

Lines changed: 44 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,48 @@
1-
; highlights.scm
1+
;; highlights.scm
22

3-
"if" @keyword
4-
"return" @keyword
5-
"else" @keyword
6-
"for" @keyword
7-
"while" @keyword
8-
"using" @keyword
9-
"struct" @type
3+
[
4+
(cast_expression)
5+
] @type
6+
7+
[
8+
"if"
9+
"ifx"
10+
"then"
11+
"else"
12+
"for"
13+
"while"
14+
"break"
15+
"return"
16+
] @keyword
17+
18+
(variable_initializer (identifier) @type)
19+
(operator_definition) @operator
20+
21+
(parameter (identifier) (identifier) @type)
22+
(trailing_return_types (parameter (identifier) @type))
23+
24+
[
25+
(expression_like_directive)
26+
"#assert"
27+
"#type_info_none"
28+
"#type_info_procedures_are_void_pointers"
29+
"#no_padding"
30+
"#specified"
31+
"#must"
32+
"#deprecated"
33+
(trailing_directive)
34+
"#code"
35+
"#complete"
36+
(operator_like_directive)
37+
"#foreign"
38+
"#align"
39+
"#module_parameters"
40+
(module_scope_directive)
41+
"#if"
42+
"#load"
43+
"#insert"
44+
"#program_export"
45+
] @function.macro
1046

1147
(string_literal) @string
1248
;;(built_in_type) @type

0 commit comments

Comments
 (0)