aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/wgsl_bevy/highlights.scm
blob: e4e9ce7c93443697b9b9f6626b23c51627674d41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
; inherits: wgsl

[
  "virtual"
  "override"
] @keyword

[
  "#import"
  "#define_import_path"
  "as"
] @keyword.import

"::" @punctuation.delimiter

(function_declaration
  (import_path
    (identifier) @function .))

(import_path
  (identifier) @module
  (identifier))

(struct_declaration
  (preproc_ifdef
    (struct_member
      (variable_identifier_declaration
        (identifier) @variable.member))))

(struct_declaration
  (preproc_ifdef
    (preproc_else
      (struct_member
        (variable_identifier_declaration
          (identifier) @variable.member)))))

(preproc_ifdef
  name: (identifier) @constant.macro)

[
  "#ifdef"
  "#ifndef"
  "#endif"
  "#else"
] @keyword.directive