Skip to content

Commit 0037ba7

Browse files
David-ElseShekhinah Memmel
authored andcommitted
Update treesitter markdown (helix-editor#4078)
* Update treesitter markdown * Update inline and add table injections
1 parent fda5623 commit 0037ba7

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

languages.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ indent = { tab-width = 2, unit = " " }
911911

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

916916
[[language]]
917917
name = "markdown.inline"
@@ -923,7 +923,7 @@ grammar = "markdown_inline"
923923

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

928928
[[language]]
929929
name = "dart"

runtime/queries/markdown/injections.scm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

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

10+
((pipe_table_cell) @injection.content (#set! injection.language "markdown.inline") (#set! injection.include-unnamed-children))
11+
1012
((minus_metadata) @injection.content (#set! injection.language "yaml") (#set! injection.include-unnamed-children))
1113
((plus_metadata) @injection.content (#set! injection.language "toml") (#set! injection.include-unnamed-children))
1214

0 commit comments

Comments
 (0)