-
Notifications
You must be signed in to change notification settings - Fork 352
timeout the paren searching #453
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
Conversation
the search pair function almost stalls my decently powerful macbook pro on really long lines, could be annoying because of minification etc.this function just makes it backwards compatible in old vim versions or builds without this feature
@@ -59,6 +59,14 @@ let s:syng_linecom = 'linecomment\c' | |||
" Expression used to check whether we should skip a match with searchpair(). | |||
let s:skip_expr = "synIDattr(synID(line('.'),col('.'),1),'name') =~ '".s:syng_strcom."'" | |||
|
|||
func s:searchpar(start,mid,end,flags,stop) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This name is confusingly similar to searchpair
. Perhaps s:searchparens
would be clearer.
I look forward to this change. 👍 |
yes, I agree on the name |
haha, just tried a skip_expr which instead match the paren syntax items instead of Not being a comment/string/regex. sadly it's just as slow |
the search pair function almost stalls my decently powerful macbook pro on really long lines, could be annoying because of minification etc.this function just makes it backwards compatible in old vim versions or builds without this feature
the search pair function almost stalls my decently powerful macbook pro on really long lines, could be annoying because of minification etc.this function just makes it backwards compatible in old vim versions or builds without this feature.it is set to 300ms, though i am open to suggestions