mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
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:
parent
5043db3db5
commit
8d43730388
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@
|
|||
(identifier) @variable
|
||||
|
||||
((identifier) @variable.builtin
|
||||
(#match? @variable.builtin "self"))
|
||||
(#match? @variable.builtin "^self$"))
|
||||
|
||||
;; Constants
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue