Hello Vim-Dev,

I was browsing some Vim-scripts and I found strange that a highlighting
of matching parens fails on this line:


let l:fg=substitute(l:bcdefg,".*\\C" . l:cde . ",\\([^,]\\),.*","\\1","")


It fails when the cursor is on
- the first, the second of '('
- the first '['
- the last ')'
- everything else is OK.

It works well when ':syn off', it fails when ':syn on'. ft=vim.

I can reproduce the problem with this simple line alone in a file.vim or
by changing the 'ft' and 'syn' for a buffer.

Best regards,
Milan

-- 
* Milan Berta
* Institute of Physics
* Academy of Sciences of the Czech Republic
* Na Slovance 2
* CZ-182 21 Prague 8
* Czech Republic
* 
* mailto: [EMAIL PROTECTED]
* phone:  +420 266 052 650, +420 266 052 748
* fax:    +420 286 890 416
* URL:    http://www.fzu.cz/
VIM - Vi IMproved 7.0f BETA (2006 Apr 24, compiled Apr 25 2006 00:22:48)
Compiled by [EMAIL PROTECTED]
Huge version without GUI.  Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent 
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments 
+cryptv +cscope +cursorshape +dialog_con +diff +digraphs -dnd -ebcdic 
+emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path 
+folding -footer +fork() -gettext -hangul_input +iconv +insert_expand +jumplist
 +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +menu 
+mksession +modify_fname +mouse -mouseshape +mouse_dec -mouse_gpm 
-mouse_jsbterm +mouse_netterm +mouse_xterm +multi_byte +multi_lang -mzscheme 
-netbeans_intg -osfiletype +path_extra -perl +postscript +printer +profile 
-python +quickfix +rightleft -ruby +scrollbind +signs +smartindent -sniff 
+statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white 
-tcl +terminfo +termresponse +textobjects +title -toolbar +user_commands 
+vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore 
+wildmenu +windows +writebackup +X11 +xfontset -xim +xsmp_interact 
+xterm_clipboard -xterm_save 
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/home/bertm0am/local/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -fno-strength-reduce 
-Wall  -I/usr/X11R6/include       
Linking: 
gcc  -L/usr/X11R6/lib   -L/usr/local/lib -o vim    -lXt -lncurses -lacl 

Reply via email to