fix(deps): update tree-sitter to v1.4.3 (fixes #884)

This commit is contained in:
Akash Yadav
2023-03-31 00:41:30 +05:30
parent 684bd26ead
commit 95e0a5e7de
5 changed files with 11 additions and 34 deletions
@@ -182,7 +182,7 @@
;;; Literals
(comment) @comment
[(line_comment) (multiline_comment)] @comment
(shebang_line) @preproc
@@ -202,19 +202,13 @@
(character_literal) @string
[
(line_string_literal)
(multi_line_string_literal)
] @string
; NOTE: Escapes not allowed in multi-line strings
(line_string_literal (character_escape_seq) @string.escape)
(string_literal) @string
; There are 3 ways to define a regex
; - "[abc]?".toRegex()
(call_expression
(navigation_expression
([(line_string_literal) (multi_line_string_literal)] @string.regex)
((string_literal) @string.regex)
(navigation_suffix
((simple_identifier) @_function
(#eq? @_function "toRegex")))))
@@ -226,7 +220,7 @@
(call_suffix
(value_arguments
(value_argument
[ (line_string_literal) (multi_line_string_literal) ] @string.regex))))
(string_literal) @string.regex))))
; - Regex.fromLiteral("[abc]?")
(call_expression
@@ -239,7 +233,7 @@
(call_suffix
(value_arguments
(value_argument
[ (line_string_literal) (multi_line_string_literal) ] @string.regex))))
(string_literal) @string.regex))))
;;; Keywords
@@ -354,21 +348,4 @@
";"
":"
"::"
] @operator
; NOTE: `interpolated_identifier`s can be highlighted in any way
(line_string_literal
"$" @punctuation.special
(interpolated_identifier) @none @variable)
(line_string_literal
"${" @punctuation.special
(interpolated_expression) @none
"}" @punctuation.special)
(multi_line_string_literal
"$" @punctuation.special
(interpolated_identifier) @none @variable)
(multi_line_string_literal
"${" @punctuation.special
(interpolated_expression) @none
"}" @punctuation.special)
] @operator
@@ -8,7 +8,7 @@
; for empty element tag, mark opening '<' and closing '/>' as brackets open and close
(empty_element
"<" @editor.brackets.open
"/>" @editor.brackets.close)
">" @editor.brackets.close)
; in case of an element which has an end tag
; mark the tag name in tag_start as bracket open
@@ -42,4 +42,4 @@
(eq) @operator
["<" "</" ">" "<?" "?>" "/>"] @operator
["<" "/" ">" "<?" "?>"] @operator
@@ -6,11 +6,11 @@
(empty_element
tag_name: (name) @indent
"/>" @outdent)
">" @outdent)
(end_tag_element
(tag_start
tag_name: (name) @indent)
(tag_end
"</" @outdent)
"<" @outdent)
)
+1 -1
View File
@@ -3,7 +3,7 @@ agp = "7.4.2"
agp-tooling = "7.4.2"
gradle-tooling = "7.6.1"
kotlin = "1.8.10"
tree-sitter = "1.4.2"
tree-sitter = "1.4.3"
editor = "0.21.1"
glide = "4.15.1"
androidx-vectordrawable = "1.1.0"