summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid2022-10-03 14:14:16 +0000
committerGitHub2022-10-03 14:14:16 +0000
commit18f6ec7a8eb9ff7d46d4ec1bba52f48364e9c9d7 (patch)
tree63e9ce20367e98a06db4144ffe78bdbb661c8901
parent9d1793c45b22a6dce0a08937717887189b46c492 (diff)
Update treesitter markdown (#4078)
* Update treesitter markdown * Update inline and add table injections
-rw-r--r--languages.toml4
-rw-r--r--runtime/queries/markdown/injections.scm2
2 files changed, 4 insertions, 2 deletions
diff --git a/languages.toml b/languages.toml
index d7909b6d..def55182 100644
--- a/languages.toml
+++ b/languages.toml
@@ -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"
@@ -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"
diff --git a/runtime/queries/markdown/injections.scm b/runtime/queries/markdown/injections.scm
index f94b9f98..e184db15 100644
--- a/runtime/queries/markdown/injections.scm
+++ b/runtime/queries/markdown/injections.scm
@@ -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))