mirror of https://github.com/helix-editor/helix
Add highlighting for lua methods (#13401)
parent
8580d35de9
commit
95c8d9c9e9
|
@ -189,6 +189,9 @@
|
||||||
name: (identifier) @function
|
name: (identifier) @function
|
||||||
value: (function_definition)))
|
value: (function_definition)))
|
||||||
|
|
||||||
|
;; Property
|
||||||
|
(dot_index_expression field: (identifier) @variable.other.member)
|
||||||
|
|
||||||
(function_call
|
(function_call
|
||||||
name: [
|
name: [
|
||||||
(identifier) @function.call
|
(identifier) @function.call
|
||||||
|
@ -216,6 +219,3 @@
|
||||||
; A bit of a tricky one, this will only match field names
|
; A bit of a tricky one, this will only match field names
|
||||||
(field . (identifier) @variable.other.member (_))
|
(field . (identifier) @variable.other.member (_))
|
||||||
(hash_bang_line) @comment
|
(hash_bang_line) @comment
|
||||||
|
|
||||||
;; Property
|
|
||||||
(dot_index_expression field: (identifier) @variable.other.member)
|
|
||||||
|
|
Loading…
Reference in New Issue