Skip to content

Commit

Permalink
build(deps): bump vimdoc (help) parser to v1.2.1 #20642
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmk committed Oct 14, 2022
1 parent 0578c67 commit d339b4a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmake.deps/CMakeLists.txt
Expand Up @@ -203,8 +203,8 @@ set(TREESITTER_LUA_SHA256 564594fe0ffd2f2fb3578a15019b723e1bc94ac82cb6a0103a6b3b
set(TREESITTER_VIM_URL https://github.com/vigoux/tree-sitter-viml/archive/v0.2.0.tar.gz)
set(TREESITTER_VIM_SHA256 608dcc31a7948cb66ae7f45494620e2e9face1af75598205541f80d782ec4501)

set(TREESITTER_HELP_URL https://github.com/neovim/tree-sitter-vimdoc/archive/v1.2.0.tar.gz)
set(TREESITTER_HELP_SHA256 63efc664dc0d7113fad7c5b437fa4b7b419eaa1760bb93ab466c0743db86aedd)
set(TREESITTER_HELP_URL https://github.com/neovim/tree-sitter-vimdoc/archive/v1.2.1.tar.gz)
set(TREESITTER_HELP_SHA256 43ddfebc311b399b284c2f1d4255a8ee3f870fc240ac08b89487c80135c63afe)

set(TREESITTER_URL https://github.com/tree-sitter/tree-sitter/archive/v0.20.7.tar.gz)
set(TREESITTER_SHA256 b355e968ec2d0241bbd96748e00a9038f83968f85d822ecb9940cbe4c42e182e)
Expand Down
7 changes: 5 additions & 2 deletions runtime/queries/help/highlights.scm
Expand Up @@ -9,8 +9,11 @@
"|" @conceal (#set! conceal "")
text: (_) @text.reference)
(optionlink
text: (_) @text.literal)
text: (_) @text.reference)
(codespan
"`" @conceal (#set! conceal "")
text: (_) @string)
text: (_) @text.literal)
(codeblock) @text.literal
(argument) @parameter
(keycode) @string.special
(url) @text.uri
4 changes: 2 additions & 2 deletions test/functional/lua/help_spec.lua
Expand Up @@ -21,7 +21,7 @@ describe(':help docs', function()
ok(rv.helpfiles > 100, '>100 :help files', rv.helpfiles)
-- Check that parse errors did not increase wildly.
-- TODO: Fix all parse errors in :help files.
ok(rv.err_count < 150, '<150 parse errors', rv.err_count)
ok(rv.err_count < 100, '<100 parse errors', rv.err_count)
eq({}, rv.invalid_links, exec_lua([[return 'found invalid :help tag links:\n'..vim.inspect(...)]], rv.invalid_links))
end)

Expand All @@ -43,7 +43,7 @@ describe(':help docs', function()
tmpdir
)
eq(4, #rv.helpfiles)
ok(rv.err_count <= 1, '<=1 parse errors', rv.err_count)
ok(rv.err_count == 0, '0 parse errors', rv.err_count)
eq({}, rv.invalid_links, exec_lua([[return 'found invalid :help tag links:\n'..vim.inspect(...)]], rv.invalid_links))
end)
end)

0 comments on commit d339b4a

Please sign in to comment.