Armel Asselin: > my diff/merge software now uses syntax colouring capabilities... and i'm > testing with all the languages supported. > I found a bug which seems to be still in code base. The end of the Gui4Cli > lexer is wrong, generating a Platform::Assert > here is a patch.
The exact length assert is questionable. The asserts are only turned on for debug mode and this one is more of a help to lexer authors than a strict requirement. It is often easier to write lexing and folding code if you allow reading and writing slightly beyond the end. Code that sticks strictly within the bounds often displays incorrectly when a lexeme ends at the document end or has to have state exit cases repeated. I flip back and forth between a strict and permissive view on this one. I'll probably make this change if the original author doesn't say anything but normally treat lexers as the responsibility of their authors or community. Neil _______________________________________________ Scintilla-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scintilla-interest
