Elixir: fix a few highlights, add ExUnit support to locals (#1933)

* Fix "not in" and sigil highlights

* Add ExUnit test case to locals

* Update README to mention new Elixir parser
This commit is contained in:
Clay 2021-10-22 14:33:01 -07:00 committed by GitHub
parent 57d3126ac1
commit 97819053c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 13 deletions

View file

@ -163,6 +163,7 @@
[
"and"
"in"
"not in"
"not"
"or"
] @keyword.operator
@ -208,17 +209,10 @@
(unary_operator
operator: "@" @comment
operand: (call
target: (((identifier) @comment) @_identifier
(#any-of? @_identifier "moduledoc" "typedoc" "shortdoc" "doc"))
target: (((identifier) @comment) @_identifier)
(arguments [
(string) @comment
(charlist) @comment
(sigil
"~" @comment
(sigil_name) @comment
quoted_start: _ @comment
(quoted_content) @comment
quoted_end: _ @comment
((sigil_modifiers) @comment)?)
(boolean) @comment
])))
(string) @comment
(charlist) @comment
(boolean) @comment
]))
(#any-of? @_identifier "moduledoc" "typedoc" "shortdoc" "doc"))