-
Notifications
You must be signed in to change notification settings - Fork 16
On help pages, "<" not concealed when followed by " - " #146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Why are you expecting this to work? |
The example matches the format described under |
So you're reporting an issue with the vimdoc parser. (Which is |
In that case, The help pages |
Again, these are upstream docs which we don't tend to touch without very good reason. |
This is related to (or could be the same issue as) #118. |
Yes, that is related. The parser relies on whitespace for tokenization (since it doesn't use an external scanner), and lists are difficult to detect if you can't rely on isolation. Instead, the policy so far has been "just write better docs smh". |
Maybe it's feasible for the grammar to let |
This allows "<" to be concealed in the documentation (specifically the documentation for working around scrollbar floating windows being included in the window count returned by winnr('$')). See the following pages for more details on the issue. - neovim/tree-sitter-vimdoc#146 - neovim/tree-sitter-vimdoc#118
Problem
On help pages with code, "<" is not concealed when followed by " - ".
This started at the following Neovim commit: 095bd8d.
Steps to reproduce
Create a file with the following content:
Then run:
Expected behavior
Expected (no "<"):
Actual (includes "<"):
(the problem is gone if "- text" is changed to "-text" or "text")
Nvim version (nvim -v)
v0.11.0
Vim (not Nvim) behaves the same?
No
Operating system/version
Kubuntu 24.04
Terminal name/version
Konsole 23.08.5
$TERM environment variable
xterm-256color
Installation
appimage
The text was updated successfully, but these errors were encountered: