Html Editor LangDef

SyntaxEditor for WPF Forum

Posted 6 months 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 6 months 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 (v22.1.3) was released 23 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.