Closed trey-pindrop closed 1 year ago
Bug of viml-parser
OK, I'll try to follow up on that repo/project.
@iamcco Do you have a link to the viml-parser project? Searching GitHub looks like it finds a few results.
@iamcco Do you have a link to the viml-parser project? Searching GitHub looks like it finds a few results.
I posted this issue to the vim-vimlparser issue. Thanks for directing me there. I'll go ahead and close this.
Describe the bug I'm not sure why this error is being thrown, it seems to be throwing an error at a specific point and I don't understand why. I have a long regex pattern which is designed to match a timestamp string (
%Y-%m-%d %H:%M:%S
), and a negation to flag invalid timestamps as errors. Thesyntax
line in question:It generates the following error:
I have vim-language-parser installed using vim-lsp (which itself is installed via vim-plug)
Here's a screenshot of the error:
Here's the full copy of my syntax file:
timetracker.txt
Here's an example log file the syntax file highlights: example.log
This file loads successfully, vim doesn't make a similar complaint when applying the syntax highlighting to my log file.
To Reproduce Steps to reproduce the behavior:
At first I thought it might be too many capture groups, but I replaced all the nested
\(...\)
with\%(...\)
. An interesting thing about this, the character it highlights is the last character of the visual line before it line wraps, or the last visible character of the line with:set nowrap
set.Expected behavior I don't expect vim to show an error on this line, not when vim itself can parse this line correctly (and not throw an error).
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Log:
Not sure how to capture logs from vim-language-server. enabling logging in vim-lsp doesn't appear to log the error.