From 5a87bc98dabd0d38152a6fa774005f7ecbd40f1b Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Thu, 2 Mar 2023 08:06:35 -0500 Subject: feat: add `@comment.documentation` where applicable --- queries/elixir/highlights.scm | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'queries/elixir') 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 -- cgit v1.2.3-70-g09d2