blob: 423fddea7e44c2a8c7557d7a6a6d5d9ba69880de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
; Comments
(comment) @comment
; Documentation
(unary_operator
operator: "@"
operand: (call
target: ((identifier) @_identifier (#any-of? @_identifier "moduledoc" "typedoc" "shortdoc" "doc"))
(arguments [
(string (quoted_content) @markdown)
(sigil (quoted_content) @markdown)
])))
; HEEx
(sigil
(sigil_name) @_sigil_name
(quoted_content) @heex
(#eq? @_sigil_name "H"))
; Surface
(sigil
(sigil_name) @_sigil_name
(quoted_content) @surface
(#eq? @_sigil_name "F"))
; Zigler
(sigil
(sigil_name) @_sigil_name
(quoted_content) @eex
(#any-of? @_sigil_name "E" "L"))
(sigil
(sigil_name) @_sigil_name
(quoted_content) @zig
(#any-of? @_sigil_name "z" "Z"))
; Regex
(sigil
(sigil_name) @_sigil_name
(quoted_content) @regex
(#any-of? @_sigil_name "r" "R"))
; Jason
(sigil
(sigil_name) @_sigil_name
(quoted_content) @json
(#any-of? @_sigil_name "j" "J"))
|