mirror of
https://github.com/neovim/neovim.git
synced 2026-11-06 05:16:52 +00:00
build(deps): bump tree-sitter-markdown to v0.5.4 (#42520)
Grammar added `info_string` field name for `(info_string)` nodes (allowing, e.g., to set a default injection language for code blocks without annotations). * adapt markdown code annotation extractor that hard-coded assumptions on field names * adapt inspector tests to changed parse tree
This commit is contained in:
1 parent
187d13aa60
commit
3ee26cf91f
4 files changed
+7
-7
No files matched your search
+2
-2
@@ -53,8 +53,8 @@
|
||||
.hash = "tree_sitter_c-0.24.2-y5boS-ptQADHoCoVfjGT_nFtFQ5LbomIkW0fxG3_cmdB",
|
||||
},
|
||||
.treesitter_markdown = .{
|
||||
.url = "git+https://github.com/tree-sitter-grammars/tree-sitter-markdown?ref=v0.5.3#f969cd3ae3f9fbd4e43205431d0ae286014c05b5",
|
||||
.hash = "N-V-__8AAOphUwCl_jXY5BvJ_I-kB6cZuE48ZpMar9Gq2SiD",
|
||||
.url = "git+https://github.com/tree-sitter-grammars/tree-sitter-markdown?ref=v0.5.4#41ff24a6c775492c543b09228aeb98d1cd2b3a0f",
|
||||
.hash = "N-V-__8AAP9XVABr5KsZTXvcDyJk7qu2PQc0r4e1uFczkpyy",
|
||||
},
|
||||
.treesitter_lua = .{
|
||||
.url = "git+https://github.com/tree-sitter-grammars/tree-sitter-lua?ref=v0.5.0#10fe0054734eec83049514ea2e718b2a56acd0c9",
|
||||
|
||||
+2
-2
@@ -44,8 +44,8 @@ TREESITTER_VIMDOC_URL https://github.com/neovim/tree-sitter-vimdoc/archive/v4.3.
|
||||
TREESITTER_VIMDOC_SHA256 4c46119abf86fcb29bc66878eb9a37666a936589769bea2b76308cd2119dfaf5
|
||||
TREESITTER_QUERY_URL https://github.com/tree-sitter-grammars/tree-sitter-query/archive/v0.8.0.tar.gz
|
||||
TREESITTER_QUERY_SHA256 c2b23b9a54cffcc999ded4a5d3949daf338bebb7945dece229f832332e6e6a7d
|
||||
TREESITTER_MARKDOWN_URL https://github.com/tree-sitter-grammars/tree-sitter-markdown/archive/v0.5.3.tar.gz
|
||||
TREESITTER_MARKDOWN_SHA256 df845b1ab7c7c163ec57d7fa17170c92b04be199bddab02523636efec5224ab6
|
||||
TREESITTER_MARKDOWN_URL https://github.com/tree-sitter-grammars/tree-sitter-markdown/archive/v0.5.4.tar.gz
|
||||
TREESITTER_MARKDOWN_SHA256 481ce2c1cce7b1130bc8455c186052bd0fa461f1ff488666994c6a3da7fca2ac
|
||||
TREESITTER_URL https://github.com/tree-sitter/tree-sitter/archive/v0.27.1.tar.gz
|
||||
TREESITTER_SHA256 982cd3d4d9eb7be18c243240a622423fd2e4ecb4bec2cd98832c2f3fa1f0f333
|
||||
|
||||
|
||||
+1
-1
@@ -162,7 +162,7 @@ local function parse_md(text)
|
||||
|
||||
for child, child_field in node:iter_children() do
|
||||
local e = extract(child)
|
||||
if child_field then
|
||||
if child_field and child_field ~= 'info_string' then
|
||||
ret[child_field] = e
|
||||
else
|
||||
table.insert(ret, e)
|
||||
|
||||
@@ -108,7 +108,7 @@ describe('vim.treesitter.inspect_tree', function()
|
||||
(section ; [0, 0] - [4, 0]
|
||||
(fenced_code_block ; [0, 0] - [3, 0]
|
||||
(fenced_code_block_delimiter) ; [0, 0] - [0, 3]
|
||||
(info_string ; [0, 3] - [0, 6]
|
||||
info_string: (info_string ; [0, 3] - [0, 6]
|
||||
(language)) ; [0, 3] - [0, 6]
|
||||
(block_continuation) ; [1, 0] - [1, 0]
|
||||
(code_fence_content ; [1, 0] - [2, 0]
|
||||
@@ -177,7 +177,7 @@ describe('vim.treesitter.inspect_tree', function()
|
||||
(section ; [0, 0] - [4, 0] markdown
|
||||
(fenced_code_block ; [0, 0] - [3, 0] markdown
|
||||
(fenced_code_block_delimiter) ; [0, 0] - [0, 3] markdown
|
||||
(info_string ; [0, 3] - [0, 6] markdown
|
||||
info_string: (info_string ; [0, 3] - [0, 6] markdown
|
||||
(language)) ; [0, 3] - [0, 6] markdown
|
||||
(block_continuation) ; [1, 0] - [1, 0] markdown
|
||||
(code_fence_content ; [1, 0] - [2, 0] markdown
|
||||
|
||||
Reference in new issue
Block a user