Posted 20 years ago
by Sandra
- Portugal
![Avatar](https://secure.gravatar.com/avatar/a90997df772d0c2912a2c18bdcbe4505.jpg?s=64&d=identicon&r=g)
Hi,
How do I define multi-line comments starting with "comment {" and ending with "}"?
I tried the following syntax but from the comment start on all the text is marked as comment, but if instead of ending with "}" I end with another character it works...
<ExplicitPatternGroup Type="StartScope" Token="MultiLineCommentStartToken" Style="CommentDelimiterStyle" PatternValue="comment {" />
<ExplicitPatternGroup Type="EndScope" Token="MultiLineCommentEndToken" Style="CommentDelimiterStyle" PatternValue="}" />
Thanks,
Sandra
How do I define multi-line comments starting with "comment {" and ending with "}"?
I tried the following syntax but from the comment start on all the text is marked as comment, but if instead of ending with "}" I end with another character it works...
<ExplicitPatternGroup Type="StartScope" Token="MultiLineCommentStartToken" Style="CommentDelimiterStyle" PatternValue="comment {" />
<ExplicitPatternGroup Type="EndScope" Token="MultiLineCommentEndToken" Style="CommentDelimiterStyle" PatternValue="}" />
Thanks,
Sandra