diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-03-15 18:06:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-15 18:06:26 +0100 |
commit | e8a0ff001f1df568077b046237fcbf07568385f8 (patch) | |
tree | cf88882a7420fb612ebe990bb069f9264a2276ba /runtime | |
parent | ff749e32137ac98737be8b231da8c47d773cdfba (diff) | |
parent | b73e65370344cf111302ca9511974022edfc041c (diff) | |
download | rneovim-e8a0ff001f1df568077b046237fcbf07568385f8.tar.gz rneovim-e8a0ff001f1df568077b046237fcbf07568385f8.tar.bz2 rneovim-e8a0ff001f1df568077b046237fcbf07568385f8.zip |
Merge pull request #14076 from mfussenegger/treesitter019
treesitter: Update to 0.19.3
Diffstat (limited to 'runtime')
-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 |