Posted 18 years ago
by Steven Liu
Hi,
I try to use zero-width assertion in comment state EndScope pattern:This does not seems to work. SyntaxEditor finds a StartScope match but cannot find a EndScope match, so everything after the first comment char "!" is marked as comments.
The reason I use "$" instead of "\n" for EndScope pattern is that I don't want to consume "\n".
Please help. Thanks.
Steven
I try to use zero-width assertion in comment state EndScope pattern:
<Scope>
<ExplicitPatternGroup Type="StartScope" TokenKey="CommentStartToken" Style="CommentDelimiterStyle" PatternValue="!" />
<RegexPatternGroup Type="EndScope" TokenKey="CommentEndToken" Style="CommentDelimiterStyle" PatternValue="$" />
</Scope>
The reason I use "$" instead of "\n" for EndScope pattern is that I don't want to consume "\n".
Please help. Thanks.
Steven