diff options
author | Mathias Fussenegger <f.mathias@zignar.net> | 2021-03-07 15:23:55 +0100 |
---|---|---|
committer | Mathias Fussenegger <f.mathias@zignar.net> | 2021-03-09 19:21:26 +0100 |
commit | b73e65370344cf111302ca9511974022edfc041c (patch) | |
tree | 449cda25372354cf37680ddf8f14bf0aadba6c37 /runtime/queries/c | |
parent | 7c204af87aa74120a70db14b87c5e7c7096ae478 (diff) | |
download | rneovim-b73e65370344cf111302ca9511974022edfc041c.tar.gz rneovim-b73e65370344cf111302ca9511974022edfc041c.tar.bz2 rneovim-b73e65370344cf111302ca9511974022edfc041c.zip |
treesitter: Update to 0.19.3
Diffstat (limited to 'runtime/queries/c')
-rw-r--r-- | runtime/queries/c/highlights.scm | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/runtime/queries/c/highlights.scm b/runtime/queries/c/highlights.scm index 96b43cf0d0..260750a85b 100644 --- a/runtime/queries/c/highlights.scm +++ b/runtime/queries/c/highlights.scm @@ -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 |