See Komodo bug http://bugs.activestate.com/show_bug.cgi?id=99593 -- the lexer is confused
with documents that start with code like "###\n###\nalert("ceci n'est pas un comment")
The reason why is I was trying to be clever mapping CS constructs like the above comment-blocks to SCE_C_COMMENT styles. The problem happens when a new lexer request happens in
the middle of a document at one of these points. Rather than look for the start of the comment, which can greatly slow down lexing of docs with large comment blocks, leave the
CS-specific states in the doc, and have the application handle them specifically.
Log in to post a comment.