Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
possible syntax bug: mixing contained and not contained rules in one group
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ruslan Zakirov  
View profile  
 More options Feb 23 2012, 7:29 am
From: Ruslan Zakirov <r...@bestpractical.com>
Date: Thu, 23 Feb 2012 16:29:36 +0400
Local: Thurs, Feb 23 2012 7:29 am
Subject: possible syntax bug: mixing contained and not contained rules in one group

Hi,

The following syntax rules behave differently when included into other syntax:

syn keyword barKey X contained
syn keyword barKey Y

Attached archive that makes it easy to reproduce. More details you can
find below.

syntax/bar.vim file:
...
syn cluster barTop contains=TOP
syn keyword barKey X contained
syn keyword barKey Y
...

syntax/foo.vim file:
...
syn include @barTop syntax/bar.vim
unlet b:current_syntax
syn region fooBar matchgroup=Delimiter start="^" end="$" contains=@barTop
...

test file:
 X
 Y

I'm using hilinks plugin for debug, that is also included in the archive.

If open test file and set file type to bar then "X" is not identified
as barKey and it's correct. However, if you set file type to foo then
"X" matches fooBar->barKey.

I hope above would help to reproduce and fix the issue.

System information:
uname -a
Darwin new-mac.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7
16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386 i386
MacBook7,1 Darwin

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Feb 22 2012 18:20:25)
Included patches: 1-444
Modified by Gentoo-7.3.444
Compiled by r...@new-mac.local
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
+conceal +cryptv -cscope
+cursorbind +cursorshape +dialog_con +diff +digraphs -dnd -ebcdic
+emacs_tags +eval +ex_extra
+extra_search +farsi +file_in_path +find_in_path +float +folding
-footer +fork() +gettext
-hangul_input +iconv +insert_expand +jumplist +keymap +langmap
+libcall +linebreak +lispindent
+listcmds +localmap -lua +menu +mksession +modify_fname +mouse
-mouseshape +mouse_dec
-mouse_gpm -mouse_jsbterm +mouse_netterm -mouse_sysmouse +mouse_xterm
+mouse_urxvt +multi_byte
+multi_lang -mzscheme +netbeans_intg +path_extra +perl
+persistent_undo +postscript +printer
+profile +python -python3 +quickfix +reltime +rightleft -ruby
+scrollbind +signs +smartindent
-sniff +startuptime +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 -xterm_clipboard -xterm_save
  system vimrc file: "/opt/portage/etc/vim/vimrc"
    user vimrc file: "$HOME/.vimrc"
     user exrc file: "$HOME/.exrc"
 fall-back for $VIM: "/opt/portage/usr/share/vim"
Compilation: x86_64-apple-darwin10-gcc -c -I. -Iproto -DHAVE_CONFIG_H
  -march=nocona -march=nocona -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: x86_64-apple-darwin10-gcc   -Wl,-dead_strip_dylibs -o vim
 -lcurses -liconv -lintl    -Wl,-dead_strip_dylibs
-L/opt/portage/usr/lib/perl5/5.12.3/x86_64-darwin/CORE -lperl -lm
-lutil -lc -L/opt/portage/usr/lib/python2.7/config -lpython2.7

--
Best regards, Ruslan.

  example.tar.gz
3K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ruslan Zakirov  
View profile  
 More options Mar 8 2012, 7:56 am
From: Ruslan Zakirov <ruslan.zaki...@gmail.com>
Date: Thu, 8 Mar 2012 04:56:53 -0800 (PST)
Local: Thurs, Mar 8 2012 7:56 am
Subject: Re: possible syntax bug: mixing contained and not contained rules in one group
Hello,

I expected some reaction, but havn't got any. Should I just send it to bug tracker? Could somebody reproduce issue? Is it high priority bug to fix or low?

This issue shows itself in mason.vim that embeds perl.vim. There are not many syntax groups in perl.vim that mix contained and not contained rules, so it's possible to workaround this issue, but I hope it gets fixed in vim core.  


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »