highlights(lua): highlight only self as self

Before, all identifiers containing the substring "self" were highlighted as the builtin `self`. Now, only the identifier `self` is highlighted as `self`.
This commit is contained in:
Janfel 2022-06-23 15:36:27 +02:00 committed by Stephan Seitz
parent 5043db3db5
commit 8d43730388

View file

@ -129,7 +129,7 @@
(identifier) @variable
((identifier) @variable.builtin
(#match? @variable.builtin "self"))
(#match? @variable.builtin "^self$"))
;; Constants