aboutsummaryrefslogtreecommitdiffstats
path: root/queries/lua
diff options
context:
space:
mode:
authorSantos Gallegos <stsewd@protonmail.com>2020-09-05 09:27:13 -0500
committerThomas Vigouroux <tomvig38@gmail.com>2020-09-06 17:25:03 +0200
commit0928b918a023ecaccb07d5191fec98c0380f8286 (patch)
treedd260aa2ddf199d12d7da2a9a9a4e63c2a394de4 /queries/lua
parentLua: fix loop and conditional keywords highlights (diff)
downloadnvim-treesitter-0928b918a023ecaccb07d5191fec98c0380f8286.tar
nvim-treesitter-0928b918a023ecaccb07d5191fec98c0380f8286.tar.gz
nvim-treesitter-0928b918a023ecaccb07d5191fec98c0380f8286.tar.bz2
nvim-treesitter-0928b918a023ecaccb07d5191fec98c0380f8286.tar.lz
nvim-treesitter-0928b918a023ecaccb07d5191fec98c0380f8286.tar.xz
nvim-treesitter-0928b918a023ecaccb07d5191fec98c0380f8286.tar.zst
nvim-treesitter-0928b918a023ecaccb07d5191fec98c0380f8286.zip
Lua: update highlights
Diffstat (limited to 'queries/lua')
-rw-r--r--queries/lua/highlights.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm
index 9f7661a45..be221885f 100644
--- a/queries/lua/highlights.scm
+++ b/queries/lua/highlights.scm
@@ -79,7 +79,7 @@
] @operator
;; Punctuation
-[ "," "." ] @punctuation.delimiter
+[ "," "." ":"] @punctuation.delimiter
;; Brackets
[
@@ -104,6 +104,12 @@
[(function_name) (identifier)] @function
"end" @keyword.function)
+(property_identifier) @property
+(method) @method
+
+(function_call (identifier) @function . (arguments))
+(function_call (field_expression (property_identifier) @function) . (arguments))
+
;; Nodes
(table ["{" "}"] @constructor)
(comment) @comment