Skip to content
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

Odd highlighting for local-additions #7

Closed
baodrate opened this issue Jul 13, 2022 · 2 comments · Fixed by #16
Closed

Odd highlighting for local-additions #7

baodrate opened this issue Jul 13, 2022 · 2 comments · Fixed by #16

Comments

@baodrate
Copy link

Some odd highlighting when looking at help.txt's local-additions section

w/o TreeSitter w/ TreeSitter
image image

text:

LOCAL ADDITIONS:				*local-additions*
|nvim-treesitter|  Treesitter configurations and abstraction layer for Neovim.
|packer.txt|                      A use-package inspired Neovim plugin manager
|matchit.txt|	Extended "%" matching

notice the h in matchit.txt is concealed

@vigoux
Copy link
Member

vigoux commented Jul 28, 2022

So it seems that the error actually comes from line 24 in this file, where a single quote ' is opened but never closed, thus confusing the parser.

I'll try to see what I can do.

@vigoux
Copy link
Member

vigoux commented Jul 28, 2022

So I have pushed a workaround in 1de3ea0.

The idea is that, normally, the parser should now create an ERROR node instead of failing silently in this situation. The proper fix I fear is not that easy, and involves some weird tricks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants