mirror of https://github.com/helix-editor/helix
add tree-sitter-eex
EEx is an templating language for Elixir. Since the incremental parsing refactor we can used combined injections which allows us to add EEx support.pull/2096/head
parent
4ac94a5c43
commit
9d095e0fdc
@ -0,0 +1,6 @@
|
||||
; https://github.com/connorlay/tree-sitter-eex/blob/f742f2fe327463335e8671a87c0b9b396905d1d1/queries/highlights.scm
|
||||
|
||||
; wrapping in (directive .. ) prevents us from highlighting '%>' in a comment as a keyword
|
||||
(directive ["<%" "<%=" "<%%" "<%%=" "%>"] @keyword)
|
||||
|
||||
(comment) @comment
|
@ -0,0 +1,9 @@
|
||||
; https://github.com/connorlay/tree-sitter-eex/blob/f742f2fe327463335e8671a87c0b9b396905d1d1/queries/injections.scm
|
||||
|
||||
((directive (expression) @injection.content)
|
||||
(#set! injection.language "elixir"))
|
||||
|
||||
((partial_expression) @injection.content
|
||||
(#set! injection.language "elixir")
|
||||
(#set! injection.include-children)
|
||||
(#set! injection.combined))
|
Loading…
Reference in New Issue