mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
chore: query formatting
This commit is contained in:
parent
79975d6557
commit
57a8acf0c4
674 changed files with 18466 additions and 12648 deletions
|
|
@ -1,5 +1,2 @@
|
|||
; inherits wgsl
|
||||
|
||||
[
|
||||
(preproc_ifdef)
|
||||
] @fold
|
||||
(preproc_ifdef) @fold
|
||||
|
|
|
|||
|
|
@ -1,36 +1,44 @@
|
|||
; inherits wgsl
|
||||
|
||||
[
|
||||
"virtual"
|
||||
"override"
|
||||
"virtual"
|
||||
"override"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"#import"
|
||||
"#define_import_path"
|
||||
"as"
|
||||
"#import"
|
||||
"#define_import_path"
|
||||
"as"
|
||||
] @keyword.import
|
||||
|
||||
"::" @punctuation.delimiter
|
||||
|
||||
(function_declaration
|
||||
(import_path
|
||||
((identifier) @function .)))
|
||||
((identifier) @function.)))
|
||||
|
||||
(import_path (identifier) @module (identifier))
|
||||
(import_path
|
||||
(identifier) @module
|
||||
(identifier))
|
||||
|
||||
(struct_declaration
|
||||
(preproc_ifdef (struct_member (variable_identifier_declaration (identifier) @variable.member))))
|
||||
(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
|
||||
(preproc_else
|
||||
(struct_member
|
||||
(variable_identifier_declaration
|
||||
(identifier) @variable.member)))))
|
||||
|
||||
(preproc_ifdef
|
||||
name: (identifier) @constant.macro)
|
||||
|
||||
[
|
||||
"#ifdef"
|
||||
"#ifndef"
|
||||
"#endif"
|
||||
"#else"
|
||||
"#ifdef"
|
||||
"#ifndef"
|
||||
"#endif"
|
||||
"#else"
|
||||
] @keyword.directive
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue