kovisoft / paredit

Official mirror of Paredit versions released on vim.org
84 stars 23 forks source link

Parentheses balancing breaks in files with very large forms #53

Open Reiddragon opened 14 hours ago

Reiddragon commented 14 hours ago

Paredit's parentheses balancing breaks in files with very large forms that have a lot of subforms

the bellow file (Tarme's main file wrapped in a module) may be used to reproduce the issue: parentheses balancing is completely broken within the module form

https://gist.github.com/Reiddragon/3b3867470aafb357c3576df30b6b411b

kovisoft commented 5 hours ago

Please set g:paredit_matchlines to a higher value in your .vimrc file, e.g. 200 or 300. The default value is 100, which means that paredit looks for matching parens withing this range of lines. As I see, module tarme is 128 lines long, so I assume this is the reason why balancing is broken. Please note that setting g:paredit_matchlines to a very high value may introduce performance issues on slower machines.