Re: [Vim-latex-devel] [PATCH] indent: Fix de-indentation of \]
Brought to you by:
srinathava,
tmaas
From: Ted P. <te...@te...> - 2012-07-09 04:16:58
|
Applied. Thanks! --Ted On Fri, Jul 6, 2012 at 12:35 PM, Sebastian Ullrich <se...@nu...> wrote: > '[' should not be escaped inside regex collections. \[ was being > indented, but not \[. > --- > indent/tex.vim | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/indent/tex.vim b/indent/tex.vim > index b92d342..95865de 100644 > --- a/indent/tex.vim > +++ b/indent/tex.vim > @@ -240,7 +240,7 @@ function GetTeXIndent() > endif > " Remove a 'shiftwidth' after a "}" or "]" while there are not "{" and "[" > " before them. \m for magic > - if cline =~ '\m^\(\([^\[]*\]\)\|\([^{]*}\)\)' > + if cline =~ '\m^\(\([^[]*\]\)\|\([^{]*}\)\)' > let ind = ind - &sw > endif > endif > -- > 1.7.11.1 > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel -- Ted Pavlic <te...@te...> |