summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanfel <33464477+Janfel@users.noreply.github.com>2022-06-23 15:36:27 +0200
committerStephan Seitz <stephan.seitz@fau.de>2022-06-24 20:27:58 +0200
commit8d43730388d1f9bc5421bee18673db1282166d44 (patch)
treeb1b334ec7fa252fbdb9b0fcd9d2a678974ac2cfe
parent5043db3db5c39f31b41c6ac20d55fdcef11f8d1f (diff)
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`.
-rw-r--r--queries/lua/highlights.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm
index 1beddb5e..ef4010bb 100644
--- a/queries/lua/highlights.scm
+++ b/queries/lua/highlights.scm
@@ -129,7 +129,7 @@
(identifier) @variable
((identifier) @variable.builtin
- (#match? @variable.builtin "self"))
+ (#match? @variable.builtin "^self$"))
;; Constants