feat(liquid): add new parser tree-sitter-liquid (#6359)

(templating language)
This commit is contained in:
Hank Jackson 2024-03-29 04:47:26 -04:00 committed by GitHub
parent 29f176c257
commit f84887230a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 164 additions and 0 deletions

View 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"))