You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that we bundle a (mostly) working treesitter parser for help files, we can have nice things: properly syntax-highlighted code examples. This involves the following steps:
extend the vimdoc parser to support language annotation for code markers (e.g., >lua) and add the corresponding injections to the bundled queries (feat: annotated code blocks tree-sitter-vimdoc#65)
Feature already in Vim?
No!
Feature description
Now that we bundle a (mostly) working treesitter parser for help files, we can have nice things: properly syntax-highlighted code examples. This involves the following steps:
>lua
) and add the corresponding injections to the bundled queries (feat: annotated code blocks tree-sitter-vimdoc#65)syntax/help.vim
to fall back gracefully if treesitter is disabled (feat(help): highlighted codeblocks #21154)gen_vimdoc.py
to handle annotated<pre>
codeblocks<pre>
blocks in Lua and C docstringsThe text was updated successfully, but these errors were encountered: