Reply to message «», 
sent 01:16:59 18 November 2010, Thursday
by [email protected]:

> I guess i found a little bug in runtime/indent/perl.vim. perl.vim has some
> patterns for matching opening and closing brackets. But perl.vim escapes
> opening square brackets in square brackets. For example: "match(line,
> '[(){}\[\]]', bracepos + 1)". Using \[ in between [] makes vim searching
> for backslashes and opening square brackets. This causes lines following
> lines with backslashes to be indented wrong.
I thought it should not (though vim help does contain nothing about possibility 
of escaping `['). Maybe it is better to allow escaping of `[': I see `\[' in 
the 
collections in the following files inside /usr/share/vim/vim73:
   autoload/rubycomplete.vim
   autoload/sqlcomplete.vim
   indent/mma.vim
   indent/perl6.vim
   indent/perl.vim
   syntax/abel.vim
   syntax/ahdl.vim
   syntax/antlr.vim
   syntax/asn.vim
   syntax/blank.vim
   syntax/clipper.vim
   syntax/config.vim
   syntax/cupl.vim
   syntax/elf.vim
   syntax/fasm.vim
   syntax/gdmo.vim
   syntax/groovy.vim
   syntax/haskell.vim
   syntax/hog.vim
   syntax/ia64.vim
   syntax/javacc.vim
   syntax/javascript.vim
   syntax/java.vim
   syntax/maxima.vim
   syntax/nasm.vim
   syntax/nroff.vim
   syntax/perl6.vim
   syntax/perl.vim
   syntax/postscr.vim
   syntax/po.vim
   syntax/rexx.vim
   syntax/scheme.vim
   syntax/sisu.vim
   syntax/smarty.vim
   syntax/smith.vim (perhaps it should replace `[\[]*' with `\[*'
   syntax/specman.vim
   syntax/vera.vim
   syntax/verilogasm.vim
   syntax/verilog.vim
   syntax/vhdl.vim
   syntax/yaml.vim
These results were obtained after processing
    grep -P '(?<!\\)\[(\\\]|[^\]\n])*?\\\[' /usr/share/vim/vim73/**/*.vim
output (grep should have pcre support). There are some false positives, but 
they 
are not included in the above list. It looks like it is Vim who should be 
fixed, 
not perl syntax file.

Attachment: signature.asc
Description: This is a digitally signed message part.

Raspunde prin e-mail lui