aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/liquid/injections.scm
blob: ab0ced6ae6beb89325ed48fb31321d8c4c55cf86 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
((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))

((front_matter) @injection.content
  (#set! injection.language "yaml")
  (#offset! @injection.content 1 0 -1 0)
  (#set! injection.include-children))

((comment) @injection.content
  (#set! injection.language "comment"))