summaryrefslogtreecommitdiff
path: root/queries/elixir
diff options
context:
space:
mode:
authorClay <connorlay@pm.me>2022-01-23 20:39:59 -0800
committerChristian Clason <christian.clason@uni-due.de>2022-01-24 08:27:44 +0100
commit7a1c404fe76a25a1047f0c4c51c6cc354deacc09 (patch)
tree21bb8674f7de30a254be63d6ddd94d91ed9dd32a /queries/elixir
parent3f8829cfb8753c0939246602e213791d8ee5ad2c (diff)
Fix highlights of module attributes and doc sigils
Diffstat (limited to 'queries/elixir')
-rw-r--r--queries/elixir/highlights.scm12
1 files changed, 10 insertions, 2 deletions
diff --git a/queries/elixir/highlights.scm b/queries/elixir/highlights.scm
index 2553ba6c..db9bfbb2 100644
--- a/queries/elixir/highlights.scm
+++ b/queries/elixir/highlights.scm
@@ -180,7 +180,7 @@
] operator: "/" right: (integer) @operator)
])
-; Sigils
+; Non-String Sigils
(sigil
"~" @string.special
((sigil_name) @string.special) @_sigil_name
@@ -189,6 +189,7 @@
((sigil_modifiers) @string.special)?
(#not-any-of? @_sigil_name "s" "S"))
+; String Sigils
(sigil
"~" @string
((sigil_name) @string) @_sigil_name
@@ -203,7 +204,8 @@
operator: "@"
operand: [
(identifier)
- (call target: (identifier) @constant)]) @constant
+ (call target: (identifier))
+ ] @constant) @constant
; Documentation
(unary_operator
@@ -214,4 +216,10 @@
(string)
(boolean)
(charlist)
+ (sigil
+ "~" @comment
+ ((sigil_name) @comment)
+ quoted_start: _ @comment
+ (quoted_content) @comment
+ quoted_end: _ @comment)
] @comment))) @comment