mirror of https://github.com/helix-editor/helix
epocsquadron/add tree sitter twig (#1602)
* Add tree-sitter-twig grammer and highlights The gammar itself is quite basic, but is much better than nothing for working with real files consisting mostly of html. * Docgen for newly added grammarpull/1621/head
parent
983a53bfb4
commit
d6b6ad879e
@ -0,0 +1 @@
|
|||||||
|
Subproject commit b7444181fb38e603e25ea8fcdac55f9492e49c27
|
@ -0,0 +1,16 @@
|
|||||||
|
(comment_directive) @comment
|
||||||
|
|
||||||
|
[
|
||||||
|
"{%"
|
||||||
|
"{%-"
|
||||||
|
"{%~"
|
||||||
|
"%}"
|
||||||
|
"-%}"
|
||||||
|
"~%}"
|
||||||
|
"{{"
|
||||||
|
"{{-"
|
||||||
|
"{{~"
|
||||||
|
"}}"
|
||||||
|
"-}}"
|
||||||
|
"~}}"
|
||||||
|
] @keyword
|
@ -0,0 +1,3 @@
|
|||||||
|
((content) @injection.content
|
||||||
|
(#set! injection.language "html")
|
||||||
|
(#set! injection.combined))
|
Loading…
Reference in New Issue