Lua: highlight function name

This commit is contained in:
Santos Gallegos 2020-08-03 21:40:23 -05:00 committed by Thomas Vigouroux
parent 688161c174
commit 429036317a
5 changed files with 17 additions and 7 deletions

View file

@ -25,11 +25,11 @@
)
[
"in"
"local"
"return"
(break_statement)
"goto"
"in"
"local"
"return"
(break_statement)
"goto"
] @keyword
;; Operators
@ -77,9 +77,12 @@
(nil) @constant.builtin
(spread) @constant ;; "..."
;; Nodes
("function" @function "end" @function) ;; Any node that has both funtion and end in it
;; Functions
("function" @keyword.function
[(function_name) (identifier)] @function
"end" @keyword.function)
;; Nodes
(table ["{" "}"] @constructor)
(comment) @comment
(string) @string