2022-01-23 20:40:21 -08:00
|
|
|
; 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)
|
|
|
|
|
])))
|
2021-10-05 19:35:35 -07:00
|
|
|
|
2022-01-23 20:40:21 -08:00
|
|
|
; HEEx
|
2021-10-20 13:20:05 +02:00
|
|
|
(sigil
|
|
|
|
|
(sigil_name) @_sigil_name
|
|
|
|
|
(quoted_content) @heex
|
2021-10-05 19:35:35 -07:00
|
|
|
(#eq? @_sigil_name "H"))
|
|
|
|
|
|
2022-01-23 20:40:21 -08:00
|
|
|
; Surface
|
|
|
|
|
(sigil
|
|
|
|
|
(sigil_name) @_sigil_name
|
|
|
|
|
(quoted_content) @surface
|
|
|
|
|
(#eq? @_sigil_name "F"))
|
|
|
|
|
|
|
|
|
|
; Zigler
|
2022-01-25 08:52:51 -08:00
|
|
|
(sigil
|
|
|
|
|
(sigil_name) @_sigil_name
|
|
|
|
|
(quoted_content) @eex
|
|
|
|
|
(#any-of? @_sigil_name "E" "L"))
|
|
|
|
|
|
2021-10-20 13:20:05 +02:00
|
|
|
(sigil
|
|
|
|
|
(sigil_name) @_sigil_name
|
|
|
|
|
(quoted_content) @zig
|
2022-01-23 20:40:21 -08:00
|
|
|
(#any-of? @_sigil_name "z" "Z"))
|
2021-10-06 12:30:40 -07:00
|
|
|
|
2022-01-23 20:40:21 -08:00
|
|
|
; Regex
|
2021-10-20 13:20:05 +02:00
|
|
|
(sigil
|
|
|
|
|
(sigil_name) @_sigil_name
|
|
|
|
|
(quoted_content) @regex
|
2021-10-06 12:30:40 -07:00
|
|
|
(#any-of? @_sigil_name "r" "R"))
|
|
|
|
|
|
2022-01-23 20:40:21 -08:00
|
|
|
; Jason
|
|
|
|
|
(sigil
|
|
|
|
|
(sigil_name) @_sigil_name
|
|
|
|
|
(quoted_content) @json
|
|
|
|
|
(#any-of? @_sigil_name "j" "J"))
|
|
|
|
|
|