Debug assertion when using HTML lexer

14 views
Skip to first unread message

Andrew Truckle

unread,
Apr 26, 2024, 5:39:41 PMApr 26
to scintilla-interest
I am not sure if this is a bug or something that I have not catered for.

But something I notice when running my app in debug mode for xml file:

image002.png

It is when I type <! and then the assert. If I hit ignore:
image003.png
I tried SciTE and it highlights in red too:

Snap1.bmp
My build behaves in the same way when I use release build. It is just debug build that gives me this popup. Here is another screen grab showing the assertion:

Snap2.bmp
Thank you for your help with getting to the bottom of this.

Andrew

Neil Hodgson

unread,
Apr 26, 2024, 5:49:21 PMApr 26
to Scintilla mailing list
Andrew Truckle:

> It is when I type <! and then the assert. If I hit ignore:
> <image003.png>

Lexers may be simplified by being written a little sloppily where calls go beyond bounds or try to style a range backwards. That assertion can help discover problems with the lexer. If you are not debugging a lexer, you should use a non-debug build of Lexilla.

Neil

Andrew Truckle

unread,
Apr 26, 2024, 7:03:49 PMApr 26
to scintilla-interest
I don't intend on doing anything myself with the lexer code. Little over my head. So, it is safe for me to copy the release build of Scintilla / Lexilla into my debug folder. Nice to know.
Do I need to flag this matter on Lexilla site, or leave as-is?

Neil Hodgson

unread,
Apr 26, 2024, 7:56:22 PMApr 26
to scintilla...@googlegroups.com
Andrew Truckle:

> Do I need to flag this matter on Lexilla site, or leave as-is?

The assertion isn't necessarily interesting by itself.

Neil
Reply all
Reply to author
Forward
0 new messages