2022-12-25 17:40:05 +01:00
|
|
|
; inherits wgsl
|
|
|
|
|
|
2023-07-25 21:30:41 +02:00
|
|
|
[
|
|
|
|
|
"virtual"
|
|
|
|
|
"override"
|
|
|
|
|
] @keyword
|
|
|
|
|
|
2022-12-25 17:40:05 +01:00
|
|
|
[
|
|
|
|
|
"#import"
|
|
|
|
|
"#define_import_path"
|
2023-07-25 21:30:41 +02:00
|
|
|
"as"
|
2022-12-25 17:40:05 +01:00
|
|
|
] @include
|
2023-07-25 21:30:41 +02:00
|
|
|
|
2022-12-25 17:40:05 +01:00
|
|
|
"::" @punctuation.delimiter
|
|
|
|
|
|
2023-07-25 21:30:41 +02:00
|
|
|
(function_declaration
|
|
|
|
|
(import_path
|
|
|
|
|
((identifier) @function .)))
|
|
|
|
|
|
2022-12-25 17:40:05 +01:00
|
|
|
(import_path (identifier) @namespace (identifier))
|
|
|
|
|
|
|
|
|
|
(struct_declaration
|
|
|
|
|
(preproc_ifdef (struct_member (variable_identifier_declaration (identifier) @field))))
|
|
|
|
|
(struct_declaration
|
|
|
|
|
(preproc_ifdef
|
|
|
|
|
(preproc_else (struct_member (variable_identifier_declaration (identifier) @field)))))
|
|
|
|
|
|
|
|
|
|
(preproc_ifdef
|
|
|
|
|
name: (identifier) @constant.macro)
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
"#ifdef"
|
|
|
|
|
"#ifndef"
|
|
|
|
|
"#endif"
|
|
|
|
|
"#else"
|
|
|
|
|
] @preproc
|