mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 15:21:47 +00:00
treesitter: Update to 0.19.3
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
"union"
|
||||
"volatile"
|
||||
"goto"
|
||||
"register"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
@@ -81,6 +82,8 @@
|
||||
"|="
|
||||
"&="
|
||||
"^="
|
||||
">>="
|
||||
"<<="
|
||||
"--"
|
||||
"++"
|
||||
] @operator
|
||||
@@ -117,7 +120,6 @@
|
||||
(preproc_arg)
|
||||
(preproc_defined)
|
||||
] @function.macro
|
||||
; TODO (preproc_arg) @embedded
|
||||
|
||||
(field_identifier) @property
|
||||
(statement_identifier) @label
|
||||
@@ -129,13 +131,22 @@
|
||||
(type_descriptor)
|
||||
] @type
|
||||
|
||||
(declaration type: [(identifier) (type_identifier)] @type)
|
||||
(cast_expression type: [(identifier) (type_identifier)] @type)
|
||||
(declaration (type_qualifier) @type)
|
||||
(cast_expression type: (type_descriptor) @type)
|
||||
(sizeof_expression value: (parenthesized_expression (identifier) @type))
|
||||
|
||||
((identifier) @constant
|
||||
(#match? @constant "^[A-Z][A-Z0-9_]+$"))
|
||||
|
||||
;; Preproc def / undef
|
||||
(preproc_def
|
||||
name: (_) @constant)
|
||||
(preproc_call
|
||||
directive: (preproc_directive) @_u
|
||||
argument: (_) @constant
|
||||
(#eq? @_u "#undef"))
|
||||
|
||||
|
||||
(comment) @comment
|
||||
|
||||
;; Parameters
|
||||
|
Reference in New Issue
Block a user