1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-04 17:50:04 +08:00
SpaceVim/bundle/nvim-treesitter/queries/markdown/injections.scm

19 lines
467 B
Scheme
Raw Normal View History

(fenced_code_block
(info_string
(language) @_lang)
(#not-match? @_lang "elm") ; prevent segfault when using elm parser
(code_fence_content)
@content
(#set-lang-from-info-string! @_lang)
(#exclude_children! @content))
((html_block) @html @combined)
((minus_metadata) @yaml (#offset! @yaml 1 0 -1 0))
((plus_metadata) @toml (#offset! @toml 1 0 -1 0))
([
(inline)
(pipe_table_cell)
] @markdown_inline (#exclude_children! @markdown_inline))