I was wondering if there was any particular reason that in the middle of the matchparen script,
an eval is used as the if condition instead of just running the code directly.
s_skip = '!empty(filter(map(synstack(line("."), col(".")), ''synIDattr(v:val, "name")''), ' ..
'''v:val =~? "string\\|character\\|singlequote\\|escape\\|symbol\\|comment"''))'
# If executing the expression determines that the cursor is currently in...
try
if eval(s_skip)
s_skip = "0"
endif
catch /^Vim\%((\a\+)\)\=:E363/
# We won't find anything, so skip searching, should keep Vim responsive.
return
endtry
I was trying to understand why that couldn't just be executed directly in the if condition.
Thanks,
TJ