feat(treesitter): update C parser and queries to v0.21.0

This commit is contained in:
Christian Clason 2024-03-17 13:07:57 +01:00
parent ac99a0810e
commit 8dda630ae9
2 changed files with 12 additions and 7 deletions

View File

@ -41,8 +41,8 @@ GETTEXT_SHA256 66415634c6e8c3fa8b71362879ec7575e27da43da562c798a8a2f223e6e47f5c
LIBICONV_URL https://github.com/neovim/deps/raw/b9bf36eb31f27e8136d907da38fa23518927737e/opt/libiconv-1.17.tar.gz
LIBICONV_SHA256 8f74213b56238c85a50a5329f77e06198771e70dd9a739779f4c02f65d971313
TREESITTER_C_URL https://github.com/tree-sitter/tree-sitter-c/archive/v0.20.8.tar.gz
TREESITTER_C_SHA256 50f8aa6a84e2ad532cc3384e84e9f9f91fe3ec41c74f58e0c1e1013df5bf3a88
TREESITTER_C_URL https://github.com/tree-sitter/tree-sitter-c/archive/v0.21.0.tar.gz
TREESITTER_C_SHA256 6f0f5d1b71cf8ffd8a37fb638c6022fa1245bd630150b538547d52128ce0ea7e
TREESITTER_LUA_URL https://github.com/tree-sitter-grammars/tree-sitter-lua/archive/v0.0.19.tar.gz
TREESITTER_LUA_SHA256 974230f212d0049fce8e881b88b18eebbd05f1fd0edd16fe4ba5bdd2bcd78d08
TREESITTER_VIM_URL https://github.com/neovim/tree-sitter-vim/archive/v0.3.0.tar.gz

View File

@ -159,21 +159,26 @@
(statement_identifier) @label
(declaration
type: (type_identifier) @_type
declarator: (identifier) @label
(#eq? @_type "__label__"))
[
(type_identifier)
(type_descriptor)
] @type
(storage_class_specifier) @keyword.storage
(storage_class_specifier) @keyword.modifier
[
(type_qualifier)
(gnu_asm_qualifier)
"__extension__"
] @type.qualifier
] @keyword.modifier
(linkage_specification
"extern" @keyword.storage)
"extern" @keyword.modifier)
(type_definition
declarator: (type_identifier) @type.definition)
@ -232,10 +237,10 @@
(argument_list
(identifier) @variable.builtin))
((attribute_specifier
(attribute_specifier
(argument_list
(call_expression
function: (identifier) @variable.builtin))))
function: (identifier) @variable.builtin)))
((call_expression
function: (identifier) @function.builtin)