aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/lua
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-09-02 05:58:57 +0000
committerBlaž Hrastnik2021-09-06 06:25:46 +0000
commita6108baec9455f223211b458e2328087e7fa3280 (patch)
tree5010a753f44516e8a398c04323d0438418aa931b /runtime/queries/lua
parent37606bad47fe0e197cb34fc7d52856597c32ce33 (diff)
Improve grammar definitions
Diffstat (limited to 'runtime/queries/lua')
-rw-r--r--runtime/queries/lua/highlights.scm8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/queries/lua/highlights.scm b/runtime/queries/lua/highlights.scm
index 8e27a39a..4e68cd66 100644
--- a/runtime/queries/lua/highlights.scm
+++ b/runtime/queries/lua/highlights.scm
@@ -108,7 +108,7 @@
[
(false)
(true)
-] @boolean
+] @constant.builtin.boolean
(nil) @constant.builtin
(spread) @constant ;; "..."
((identifier) @constant
@@ -116,7 +116,7 @@
;; Parameters
(parameters
- (identifier) @parameter)
+ (identifier) @variable.parameter)
; ;; Functions
(function [(function_name) (identifier)] @function)
@@ -139,8 +139,8 @@
(function_call
[
- ((identifier) @variable (method) @method)
- ((_) (method) @method)
+ ((identifier) @variable (method) @function.method)
+ ((_) (method) @function.method)
(identifier) @function
(field_expression (property_identifier) @function)
]