Skip to content

Commit 3906938

Browse files
committed
Update queries files
recommanded by nvim-treesitter reviewers
1 parent 1881feb commit 3906938

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

queries/highlights.scm

+9-6
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@
2525
"using"
2626
] @keyword
2727

28-
(primitives_type) @type
29-
(builtin_complex_type) @type
28+
(primitives_type) @type.builtin
3029

31-
(const_declaration (identifier) @constant )
30+
(builtin_complex_type) @type.builtin
31+
32+
(const_declaration
33+
(identifier) @constant)
3234

3335
[
3436
"="
@@ -37,8 +39,9 @@
3739
"->"
3840
] @operator
3941

40-
(attribute (identifier) @attribute)
41-
(attribute ("@") @attribute)
42+
(attribute
43+
"@" @attribute
44+
(identifier) @attribute)
4245

4346
(string_literal) @string
4447

@@ -47,7 +50,7 @@
4750
[
4851
(true)
4952
(false)
50-
] @constant.builtin
53+
] @boolean
5154

5255
(comment) @comment
5356

queries/injections.scm

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
((comment) @injection.content
2+
(#set! injection.language "comment"))

0 commit comments

Comments
 (0)