pkt / lh-vim

Luc Hermitte's lh-vim to save it from google code closing
0 stars 0 forks source link

[lhBrackets] the -escapable option of :Brackets should be re-though #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We should be able to distinguish and treat accordingly the following cases:
1. "foo\"bar", in C strings
2. \{foo\}, in LaTeX ; '\(foo\)' in VimL

In the first case, the backslash (or any other specifiable character)
should prevent the mappings from expanding.

In the second case, the backslash (or even '\%' in VimL case) triggers the
expansion of the closing pair prefixed by a backslash.

The first case could be fixed with something like
`-context=function(NoStringNorCommentsNorBackslash')`. Is it an acceptable
workaround ? 

Original issue reported on code.google.com by luc.herm...@gmail.com on 24 Oct 2008 at 10:02

GoogleCodeExporter commented 9 years ago

Original comment by luc.herm...@gmail.com on 24 Oct 2008 at 10:03