mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
Lua: update highlights
This commit is contained in:
parent
5504b84d21
commit
0928b918a0
1 changed files with 7 additions and 1 deletions
|
|
@ -79,7 +79,7 @@
|
||||||
] @operator
|
] @operator
|
||||||
|
|
||||||
;; Punctuation
|
;; Punctuation
|
||||||
[ "," "." ] @punctuation.delimiter
|
[ "," "." ":"] @punctuation.delimiter
|
||||||
|
|
||||||
;; Brackets
|
;; Brackets
|
||||||
[
|
[
|
||||||
|
|
@ -104,6 +104,12 @@
|
||||||
[(function_name) (identifier)] @function
|
[(function_name) (identifier)] @function
|
||||||
"end" @keyword.function)
|
"end" @keyword.function)
|
||||||
|
|
||||||
|
(property_identifier) @property
|
||||||
|
(method) @method
|
||||||
|
|
||||||
|
(function_call (identifier) @function . (arguments))
|
||||||
|
(function_call (field_expression (property_identifier) @function) . (arguments))
|
||||||
|
|
||||||
;; Nodes
|
;; Nodes
|
||||||
(table ["{" "}"] @constructor)
|
(table ["{" "}"] @constructor)
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue