mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 17:30:08 -04:00
Add new Elixir language injections
This commit is contained in:
parent
7a1c404fe7
commit
c7d5ba7212
1 changed files with 28 additions and 6 deletions
|
|
@ -1,21 +1,43 @@
|
||||||
(sigil
|
; Comments
|
||||||
(sigil_name) @_sigil_name
|
(comment) @comment
|
||||||
(quoted_content) @surface
|
|
||||||
(#eq? @_sigil_name "F"))
|
|
||||||
|
|
||||||
|
; 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
|
||||||
(sigil_name) @_sigil_name
|
(sigil_name) @_sigil_name
|
||||||
(quoted_content) @heex
|
(quoted_content) @heex
|
||||||
(#eq? @_sigil_name "H"))
|
(#eq? @_sigil_name "H"))
|
||||||
|
|
||||||
|
; Surface
|
||||||
|
(sigil
|
||||||
|
(sigil_name) @_sigil_name
|
||||||
|
(quoted_content) @surface
|
||||||
|
(#eq? @_sigil_name "F"))
|
||||||
|
|
||||||
|
; Zigler
|
||||||
(sigil
|
(sigil
|
||||||
(sigil_name) @_sigil_name
|
(sigil_name) @_sigil_name
|
||||||
(quoted_content) @zig
|
(quoted_content) @zig
|
||||||
(#eq? @_sigil_name "Z"))
|
(#any-of? @_sigil_name "z" "Z"))
|
||||||
|
|
||||||
|
; Regex
|
||||||
(sigil
|
(sigil
|
||||||
(sigil_name) @_sigil_name
|
(sigil_name) @_sigil_name
|
||||||
(quoted_content) @regex
|
(quoted_content) @regex
|
||||||
(#any-of? @_sigil_name "r" "R"))
|
(#any-of? @_sigil_name "r" "R"))
|
||||||
|
|
||||||
(comment) @comment
|
; Jason
|
||||||
|
(sigil
|
||||||
|
(sigil_name) @_sigil_name
|
||||||
|
(quoted_content) @json
|
||||||
|
(#any-of? @_sigil_name "j" "J"))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue