[Vim-latex-devel] [PATCH] indent: Fix de-indentation of \]
Brought to you by:
srinathava,
tmaas
From: Sebastian U. <se...@nu...> - 2012-07-06 19:35:31
|
'[' 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 |