Dan Doel wrote:
On Thu, Oct 31, 2013 at 11:53 AM, Charles Campbell
charles.e.campb...@nasa.gov wrote:
MMAMBMB
# a b b
# b b
M
At the time the syntax hilighter sees the # in # b b, note that
'#\=\s*\zsb' DOES NOT MATCH.
However, the M syntax DOES MATCH, and so its highlighted as MyComment.
On Fri, Nov 1, 2013 at 10:05 AM, Charles Campbell
charles.e.campb...@nasa.gov wrote:
I note that removing the '#\=\s*\zs' portion from the B match:
syn clear
syntax match MyComment '#.*$' contains=A
syntax match A 'a' nextgroup=B skipwhite skipnl
syntax match B 'b' contained nextgroup=B
Dan Doel wrote:
On Sunday, October 27, 2013 4:56:18 PM UTC-4, Christian Brabandt wrote:
A workaround is something like this (which looks cleaner for me)
syntax match MyComment '#.*$' contains=A,B
syntax match A 'a' nextgroup=B skipwhite skipnl
syntax match B 'b' contained nextgroup=B
On Thu, Oct 31, 2013 at 11:53 AM, Charles Campbell
charles.e.campb...@nasa.gov wrote:
MMAMBMB
# a b b
# b b
M
At the time the syntax hilighter sees the # in # b b, note that
'#\=\s*\zsb' DOES NOT MATCH.
However, the M syntax DOES MATCH, and so its highlighted as MyComment.
Syntax
Hello everyone,
I've stumbled across the issue with syntax highlighting. Rather than
rewriting, I'll post a link to the question on Stack Overflow: Vim: Syntax
Highlighting Doesn't Work with Recursive `nextgroup` Across Newlines When
On So, 27 Okt 2013, Alexander Shukaev wrote:
I've stumbled across the issue with syntax highlighting. Rather than
rewriting, I'll post a link to the question on Stack Overflow: Vim: Syntax
Highlighting Doesn't Work with Recursive `nextgroup` Across Newlines When
On 27-Oct-2013 21:11 +0100, Christian Brabandt wrote:
On So, 27 Okt 2013, Alexander Shukaev wrote:
I've stumbled across the issue with syntax highlighting. Rather than
rewriting, I'll post a link to the question on Stack Overflow: Vim: Syntax
Highlighting Doesn't Work with Recursive
On So, 27 Okt 2013, Ingo Karkat wrote:
In the first line, group 'A' prefers a following 'B' via the
nextgroup=B, and this does work for the next 3 'b' in the same line.
It apparently fails in the second line, even though skipnl has been given.
Ah, now I see. The MyComments match confused me.