Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 95 by [email protected]: oneline regions don't work with contained
regions
http://code.google.com/p/vim/issues/detail?id=95
What steps will reproduce the problem?
1. syn region AngleBrackets start="<" end=">" oneline
2. hi default AngleBrackets guifg=red
3. Testing on:
if ( a < b<>)
VIM considers the first angle bracket as an open region just after typing
the closing bracket of the inner region.
What is the expected output? What do you see instead?
As stated in documentation, by default VIM should not consider the ending
pattern of an inner region while evaluating the outer region, and so, as
this is about oneline regions, the first < should not pair anything since
the line finishes, and so it should be discarded as being the beginning of
a region.
I'm using 'oneline' because of this expected behavior, but I'm getting an
error highlight telling that there's an outer region still open, but in
truth there is no outer region! just one that's already closed.
What version of the product are you using? On what operating system?
7.3 Included patches: 1-712
OS X Mountain Lion
Please provide any additional information below.
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php