Html Editor LangDef

SyntaxEditor for WPF Forum

Posted 2 years ago by SPF - Appeon
Version: 22.1.1
Avatar

An abnormal syntax coloring is found. Please see the email for the specific phenomenon.

Comments (1)

Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

The scenario you describe is all due to tokenization.  Our current CSS lexer implementation seems to have a bug in the CommentText pattern group where each comment text character is its own token.  And when a token starts, it first checks to see if a parent language should end.

<RegexPatternGroup TokenKey="CommentText" Pattern="[^*]" />

If we fix the bug and change it to this instead, it should help with the problem you saw:

<RegexPatternGroup TokenKey="CommentText" Pattern="[^*]+" />


Actipro Software Support

The latest build of this product (v24.1.3) was released 26 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.