Townk / vim-autoclose

This plugin for Vim enable an auto-close chars feature for you. For instance if you type an '(', ``autoclose`` will automatically insert a ')' and put the cursor between than.
http://townk.github.com/vim-autoclose/
503 stars 66 forks source link

Wrong chars in regular expressions #52

Open EinfachToll opened 11 years ago

EinfachToll commented 11 years ago

Although I could not figure out where, if ever, this causes a problem, the following lines (lines 129ff. in plugin/AutoClose.vim) seem not to work:

if b:AutoCloseSmartQuote != 0
     let l:regex = q . '[ˆ\\' . q . ']*(\\.[ˆ\\' . q . ']*)*' . q
else
     let l:regex = q . '[ˆ' . q . ']*' . q
endif

The ˆ are most likely supposed to be a ^ But I don't really get the meaning of the first regular expression anyway...