Merge pull request #14076 from mfussenegger/treesitter019

treesitter: Update to 0.19.3
This commit is contained in:
Björn Linse 2021-03-15 18:06:26 +01:00 committed by GitHub
commit e8a0ff001f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 7 deletions

View File

@ -14,6 +14,7 @@
"union" "union"
"volatile" "volatile"
"goto" "goto"
"register"
] @keyword ] @keyword
[ [
@ -81,6 +82,8 @@
"|=" "|="
"&=" "&="
"^=" "^="
">>="
"<<="
"--" "--"
"++" "++"
] @operator ] @operator
@ -117,7 +120,6 @@
(preproc_arg) (preproc_arg)
(preproc_defined) (preproc_defined)
] @function.macro ] @function.macro
; TODO (preproc_arg) @embedded
(field_identifier) @property (field_identifier) @property
(statement_identifier) @label (statement_identifier) @label
@ -129,13 +131,22 @@
(type_descriptor) (type_descriptor)
] @type ] @type
(declaration type: [(identifier) (type_identifier)] @type) (declaration (type_qualifier) @type)
(cast_expression type: [(identifier) (type_identifier)] @type) (cast_expression type: (type_descriptor) @type)
(sizeof_expression value: (parenthesized_expression (identifier) @type)) (sizeof_expression value: (parenthesized_expression (identifier) @type))
((identifier) @constant ((identifier) @constant
(#match? @constant "^[A-Z][A-Z0-9_]+$")) (#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 (comment) @comment
;; Parameters ;; Parameters

View File

@ -196,11 +196,11 @@ set(GETTEXT_SHA256 66415634c6e8c3fa8b71362879ec7575e27da43da562c798a8a2f223e6e47
set(LIBICONV_URL https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz) set(LIBICONV_URL https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz)
set(LIBICONV_SHA256 ccf536620a45458d26ba83887a983b96827001e92a13847b45e4925cc8913178) set(LIBICONV_SHA256 ccf536620a45458d26ba83887a983b96827001e92a13847b45e4925cc8913178)
set(TREESITTER_C_URL https://github.com/tree-sitter/tree-sitter-c/archive/99151b1.tar.gz) set(TREESITTER_C_URL https://github.com/tree-sitter/tree-sitter-c/archive/5aa0bbb.tar.gz)
set(TREESITTER_C_SHA256 950386f9ba77fb6a7e992198d4f219c34238a2bbc005c5f53c4212d0f8772b06) set(TREESITTER_C_SHA256 a5dcb37460d83002dfae7f9a208170ddbc9a047f231b9d6b75da7d36d707db2f)
set(TREESITTER_URL https://github.com/tree-sitter/tree-sitter/archive/0.18.0.zip) set(TREESITTER_URL https://github.com/tree-sitter/tree-sitter/archive/v0.19.3.zip)
set(TREESITTER_SHA256 ac53b7708ca47161dac7f8e852bd61accb8527d45b7ad72e29e12e8e72dbe440) set(TREESITTER_SHA256 1a2c5b816fa7f78587672a022a5f671004ac656ebad39857b3c15442c657fcb0)
if(USE_BUNDLED_UNIBILIUM) if(USE_BUNDLED_UNIBILIUM)
include(BuildUnibilium) include(BuildUnibilium)