Do vim .profile in my $HOME, when the vimrc contains only the following two lines: se re=1 and syn enable. The bash profile is only 139 lines long, with no funny business.
Since the mentioned commit, it takes a few seconds to open, and when it finally does, I see redrawtime exceeded, syntax highlighting disabled at the bottom of the window (and of course, no syntax highlighting.)
There is no issue if I comment-out se re=1. But I don't think something as fundamental as shell highlighting should depend on the backtracking engine.
It should open instantly and with syntax highlighting working, as it has for the last 21 years.
9.2.0239 with 9c0d057
Linux Mint 22
Terminal: kitty (but the problem also happens in gvim).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
can you please use :syntime and find the offending regex?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Sure. There's a clear culprit:
TOTAL COUNT MATCH SLOWEST AVERAGE NAME PATTERN
2.000360390 1 0 2.000360390 2.000360390 shFunctionThree ^\s*\zs\%(\<\k\+\|[^()<>|&$;\t ]\+\)\+\s*()\ze\_s*((\@!
Let me know if you want the whole :syntime report. But all other lines have a time starting with 0.000000.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Sorry about this regression.
Although the identified pattern follows closely what may
qualify as a function name according to the manual page:
In default mode, a function name can be any unquoted shell
word that does not contain$.
I concede that the name part needs more reining in to avoid
wasting time on non-matching candidates. I'll offer a fix
in a little bit.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Perhaps we can just limit the look around assertion by say 30 bytes?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()