diff options
Diffstat (limited to 'queries/lua')
| -rw-r--r-- | queries/lua/highlights.scm | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm index 7a69434dd..01bb48ec4 100644 --- a/queries/lua/highlights.scm +++ b/queries/lua/highlights.scm @@ -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 |
