mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -04:00
feat(liquid): add new parser tree-sitter-liquid (#6359)
(templating language)
This commit is contained in:
parent
29f176c257
commit
f84887230a
5 changed files with 164 additions and 0 deletions
22
queries/liquid/injections.scm
Normal file
22
queries/liquid/injections.scm
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
((template_content) @injection.content
|
||||
(#set! injection.language "html")
|
||||
(#set! injection.combined))
|
||||
|
||||
; TODO we can switch to quantifiers once neovim 0.10 becomes stable
|
||||
(javascript_statement
|
||||
(js_content) @injection.content
|
||||
(#set! injection.language "javascript")
|
||||
(#set! injection.combined))
|
||||
|
||||
(schema_statement
|
||||
(json_content) @injection.content
|
||||
(#set! injection.language "json")
|
||||
(#set! injection.combined))
|
||||
|
||||
(style_statement
|
||||
(style_content) @injection.content
|
||||
(#set! injection.language "css")
|
||||
(#set! injection.combined))
|
||||
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue