mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 22:40:12 -04:00
feat(liquid): capture (front_matter) and inject yaml (#7672)
This commit is contained in:
parent
0cfe75d2a2
commit
4cf2da5c3a
2 changed files with 7 additions and 0 deletions
|
|
@ -130,3 +130,5 @@
|
||||||
","
|
","
|
||||||
"."
|
"."
|
||||||
] @punctuation.delimiter
|
] @punctuation.delimiter
|
||||||
|
|
||||||
|
(front_matter) @keyword.directive
|
||||||
|
|
|
||||||
|
|
@ -18,5 +18,10 @@
|
||||||
(#set! injection.language "css")
|
(#set! injection.language "css")
|
||||||
(#set! injection.combined))
|
(#set! injection.combined))
|
||||||
|
|
||||||
|
((front_matter) @injection.content
|
||||||
|
(#set! injection.language "yaml")
|
||||||
|
(#offset! @injection.content 1 0 -1 0)
|
||||||
|
(#set! injection.include-children))
|
||||||
|
|
||||||
((comment) @injection.content
|
((comment) @injection.content
|
||||||
(#set! injection.language "comment"))
|
(#set! injection.language "comment"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue