Skip to content

Commit

Permalink
Update treesitter markdown (#4078)
Browse files Browse the repository at this point in the history
* Update treesitter markdown

* Update inline and add table injections
  • Loading branch information
David-Else authored Oct 3, 2022
1 parent 9d1793c commit 18f6ec7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ indent = { tab-width = 2, unit = " " }

[[grammar]]
name = "markdown"
source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "142a5b4a1b092b64c9f5db8f11558f9dd4009a1b", subpath = "tree-sitter-markdown" }
source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "d5740f0fe4b8e4603f2229df107c5c9ef5eec389", subpath = "tree-sitter-markdown" }

[[language]]
name = "markdown.inline"
Expand All @@ -923,7 +923,7 @@ grammar = "markdown_inline"

[[grammar]]
name = "markdown_inline"
source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "142a5b4a1b092b64c9f5db8f11558f9dd4009a1b", subpath = "tree-sitter-markdown-inline" }
source = { git = "https://github.com/MDeiml/tree-sitter-markdown", rev = "d5740f0fe4b8e4603f2229df107c5c9ef5eec389", subpath = "tree-sitter-markdown-inline" }

[[language]]
name = "dart"
Expand Down
2 changes: 2 additions & 0 deletions runtime/queries/markdown/injections.scm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

((html_block) @injection.content (#set! injection.language "html") (#set! injection.include-unnamed-children))

((pipe_table_cell) @injection.content (#set! injection.language "markdown.inline") (#set! injection.include-unnamed-children))

((minus_metadata) @injection.content (#set! injection.language "yaml") (#set! injection.include-unnamed-children))
((plus_metadata) @injection.content (#set! injection.language "toml") (#set! injection.include-unnamed-children))

Expand Down

0 comments on commit 18f6ec7

Please sign in to comment.