mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 04:20:09 -04:00
lua: update to pull shebang fix
This commit is contained in:
parent
9dd0e3b456
commit
d5a8ff94cd
3 changed files with 5 additions and 3 deletions
|
|
@ -6,6 +6,7 @@
|
|||
(if_statement
|
||||
[
|
||||
"if"
|
||||
"then"
|
||||
"end"
|
||||
] @conditional)
|
||||
|
||||
|
|
@ -110,7 +111,7 @@
|
|||
(function [(function_name) (identifier)] @function)
|
||||
(function ["function" "end"] @keyword.function)
|
||||
|
||||
(local_function [(function_name) (identifier)] @function)
|
||||
(local_function (identifier) @function)
|
||||
(local_function ["function" "end"] @keyword.function)
|
||||
|
||||
(function_definition ["function" "end"] @keyword.function)
|
||||
|
|
@ -131,6 +132,7 @@
|
|||
(string) @string
|
||||
(number) @number
|
||||
(label_statement) @label
|
||||
(shebang) @comment
|
||||
|
||||
;; Error
|
||||
(ERROR) @error
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
(identifier) @definition.var))
|
||||
|
||||
((variable_declarator
|
||||
(field_expression object:(*) @definition.associated (property_identifier) @definition.var)))
|
||||
(field_expression . (_) @definition.associated (property_identifier) @definition.var)))
|
||||
|
||||
;; Parameters
|
||||
(parameters (identifier) @definition.parameter)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue