aboutsummaryrefslogtreecommitdiffstats
path: root/queries/elixir
diff options
context:
space:
mode:
authorAmaan Qureshi <amaanq12@gmail.com>2023-03-02 08:06:35 -0500
committerAmaan Qureshi <amaanq12@gmail.com>2023-03-05 17:15:32 -0500
commit5a87bc98dabd0d38152a6fa774005f7ecbd40f1b (patch)
tree941f6fdcddf4468c10212dd170bae3ff361f867c /queries/elixir
parentdocs: add `@comment.documentation` (diff)
downloadnvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.tar
nvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.tar.gz
nvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.tar.bz2
nvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.tar.lz
nvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.tar.xz
nvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.tar.zst
nvim-treesitter-5a87bc98dabd0d38152a6fa774005f7ecbd40f1b.zip
feat: add `@comment.documentation` where applicable
Diffstat (limited to 'queries/elixir')
-rw-r--r--queries/elixir/highlights.scm20
1 files changed, 9 insertions, 11 deletions
diff --git a/queries/elixir/highlights.scm b/queries/elixir/highlights.scm
index d87afcf1b..3223fa683 100644
--- a/queries/elixir/highlights.scm
+++ b/queries/elixir/highlights.scm
@@ -29,12 +29,10 @@
((identifier) @comment (#match? @comment "^_"))
; Comments
-(comment) @comment
-(comment) @spell
+(comment) @comment @spell
; Strings
-(string) @string
-(string) @spell
+(string) @string @spell
; Modules
(alias) @type
@@ -214,15 +212,15 @@
(unary_operator
operator: "@"
operand: (call
- target: ((identifier) @_identifier (#any-of? @_identifier "moduledoc" "typedoc" "shortdoc" "doc")) @comment
+ target: ((identifier) @_identifier (#any-of? @_identifier "moduledoc" "typedoc" "shortdoc" "doc")) @comment.documentation
(arguments [
(string)
(boolean)
(charlist)
(sigil
- "~" @comment
- ((sigil_name) @comment)
- quoted_start: _ @comment
- (quoted_content) @comment
- quoted_end: _ @comment)
- ] @comment))) @comment
+ "~" @comment.documentation
+ ((sigil_name) @comment.documentation)
+ quoted_start: _ @comment.documentation
+ (quoted_content) @comment.documentation
+ quoted_end: _ @comment.documentation)
+ ] @comment.documentation))) @comment.documentation