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:
Łukasz Niemier 2021-10-20 13:20:05 +02:00 committed by Santos Gallegos
parent cfce9a58f3
commit 2c2d4d89fd
2 changed files with 27 additions and 31 deletions

View file

@ -209,10 +209,6 @@
(unary_operator
operator: "@" @comment
operand: (call
target: (((identifier) @comment) @_identifier)
(arguments [
(string) @comment
(charlist) @comment
(boolean) @comment
]))
target: ((identifier) @_identifier)
_) @comment
(#any-of? @_identifier "moduledoc" "typedoc" "shortdoc" "doc"))