mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 00:40:06 -04:00
fix: Elixir non-doc sigils will no longer be flickering
It also adds support for colouring documentation metadata attributes (ex. `@doc foo: :bar`).
This commit is contained in:
parent
cfce9a58f3
commit
2c2d4d89fd
2 changed files with 27 additions and 31 deletions
|
|
@ -1,21 +1,21 @@
|
|||
(sigil
|
||||
(sigil_name) @_sigil_name
|
||||
(quoted_content) @surface
|
||||
(sigil
|
||||
(sigil_name) @_sigil_name
|
||||
(quoted_content) @surface
|
||||
(#eq? @_sigil_name "F"))
|
||||
|
||||
(sigil
|
||||
(sigil_name) @_sigil_name
|
||||
(quoted_content) @heex
|
||||
(sigil
|
||||
(sigil_name) @_sigil_name
|
||||
(quoted_content) @heex
|
||||
(#eq? @_sigil_name "H"))
|
||||
|
||||
(sigil
|
||||
(sigil_name) @_sigil_name
|
||||
(quoted_content) @zig
|
||||
(sigil
|
||||
(sigil_name) @_sigil_name
|
||||
(quoted_content) @zig
|
||||
(#eq? @_sigil_name "Z"))
|
||||
|
||||
(sigil
|
||||
(sigil_name) @_sigil_name
|
||||
(quoted_content) @regex
|
||||
(sigil
|
||||
(sigil_name) @_sigil_name
|
||||
(quoted_content) @regex
|
||||
(#any-of? @_sigil_name "r" "R"))
|
||||
|
||||
(comment) @comment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue