chore: Change git deps to crates.io dependencies where possible (#12362)

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2024-05-27 23:32:51 +02:00 committed by GitHub
parent a6dd2ca694
commit 20f37f0647
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 68 additions and 62 deletions

View file

@ -112,7 +112,7 @@
(true)
(false)
(null)
(nullptr)
("nullptr")
] @constant
(number_literal) @number

View file

@ -17,7 +17,7 @@
; Function and method definitions
(function
(function_expression
name: (identifier) @function)
(function_declaration
name: (identifier) @function)
@ -26,20 +26,20 @@
(pair
key: (property_identifier) @function.method
value: [(function) (arrow_function)])
value: [(function_expression) (arrow_function)])
(assignment_expression
left: (member_expression
property: (property_identifier) @function.method)
right: [(function) (arrow_function)])
right: [(function_expression) (arrow_function)])
(variable_declarator
name: (identifier) @function
value: [(function) (arrow_function)])
value: [(function_expression) (arrow_function)])
(assignment_expression
left: (identifier) @function
right: [(function) (arrow_function)])
right: [(function_expression) (arrow_function)])
; Special identifiers
@ -225,5 +225,5 @@
(jsx_attribute (property_identifier) @attribute)
(jsx_opening_element (["<" ">"]) @punctuation.bracket)
(jsx_closing_element (["<" "/" ">"]) @punctuation.bracket)
(jsx_self_closing_element (["<" "/" ">"]) @punctuation.bracket)
(jsx_closing_element (["</" ">"]) @punctuation.bracket)
(jsx_self_closing_element (["<" "/>"]) @punctuation.bracket)

View file

@ -5,10 +5,7 @@
(template_string)
] @string
[
(jsx_element)
(jsx_fragment)
] @element
(jsx_element) @element
[
(jsx_opening_element)

View file

@ -17,7 +17,7 @@
; Function and method definitions
(function
(function_expression
name: (identifier) @function)
(function_declaration
name: (identifier) @function)
@ -26,20 +26,20 @@
(pair
key: (property_identifier) @function.method
value: [(function) (arrow_function)])
value: [(function_expression) (arrow_function)])
(assignment_expression
left: (member_expression
property: (property_identifier) @function.method)
right: [(function) (arrow_function)])
right: [(function_expression) (arrow_function)])
(variable_declarator
name: (identifier) @function
value: [(function) (arrow_function)])
value: [(function_expression) (arrow_function)])
(assignment_expression
left: (identifier) @function
right: [(function) (arrow_function)])
right: [(function_expression) (arrow_function)])
; Special identifiers
@ -235,5 +235,5 @@
(jsx_attribute (property_identifier) @attribute)
(jsx_opening_element (["<" ">"]) @punctuation.bracket)
(jsx_closing_element (["<" "/" ">"]) @punctuation.bracket)
(jsx_self_closing_element (["<" "/" ">"]) @punctuation.bracket)
(jsx_closing_element (["</" ">"]) @punctuation.bracket)
(jsx_self_closing_element (["<" "/>"]) @punctuation.bracket)

View file

@ -5,10 +5,7 @@
(template_string)
] @string
[
(jsx_element)
(jsx_fragment)
] @element
(jsx_element) @element
[
(jsx_opening_element)

View file

@ -17,7 +17,7 @@
; Function and method definitions
(function
(function_expression
name: (identifier) @function)
(function_declaration
name: (identifier) @function)
@ -26,20 +26,20 @@
(pair
key: (property_identifier) @function.method
value: [(function) (arrow_function)])
value: [(function_expression) (arrow_function)])
(assignment_expression
left: (member_expression
property: (property_identifier) @function.method)
right: [(function) (arrow_function)])
right: [(function_expression) (arrow_function)])
(variable_declarator
name: (identifier) @function
value: [(function) (arrow_function)])
value: [(function_expression) (arrow_function)])
(assignment_expression
left: (identifier) @function
right: [(function) (arrow_function)])
right: [(function_expression) (arrow_function)])
; Special identifiers