Iago Rubio:

It looks like it will be solved by checking for SCE_HB_COMMENTLINE in
stateAllowsTermination - LexHTML.cxx:172 - and returning false on match.

  That looks good to me.

"Terminate ASP scripting when a ?> is seen outside a string. This allows
use with the Kid template language."
http://scintilla.cvs.sourceforge.net/scintilla/scintilla/src/LexHTML.cxx?r1=1.93&r2=1.94

I'm completely clueless about the Kid template language, so I don't know
if I will break its usage with the change mentioned.

  Kid is defined at http://kid-templating.org/ . Since it is
concerned with server-side Python, I doubt it will have problems if
termination is handled differently for server-side Basic.

  I committed the change:
Index: LexHTML.cxx
===================================================================
RCS file: /cvsroot/scintilla/scintilla/src/LexHTML.cxx,v
retrieving revision 1.99
diff -u -r1.99 LexHTML.cxx
--- LexHTML.cxx 2 May 2006 13:45:55 -0000       1.99
+++ LexHTML.cxx 19 Dec 2006 11:49:01 -0000
@@ -173,6 +173,7 @@
        bool allowTermination = !isStringState(state);
        if (allowTermination) {
                switch (state) {
+               case SCE_HB_COMMENTLINE:
                case SCE_HPHP_COMMENT:
                case SCE_HP_COMMENTLINE:
                case SCE_HPA_COMMENTLINE:

  Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to