ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> scintilla-interest
scintilla-interest
[scintilla] Another ASP-Lexer problem concerning comments.
by Axel Heyne other posts by this author
Nov 7 2006 11:33AM messages near this date
[scintilla] [ scintilla-Feature Requests-1591684 ] Extend SCI_SETFOLDFLAGS to have also coloured background | Re: [scintilla] Another ASP-Lexer problem concerning comments.
Hi.

I found another problem in the ASP-lexer.
It belongs to comments.

Please take a look in my sample.
It is my lexer-test file, which i used in past issues also, maybe you 
remember it.

New is the part described as "Here is error number 4:".

I'm running 1.71 right now.

<%@ LANGUAGE="VBSCRIPT" %> 
<!-- #INCLUDE FILE="INCLUDES/TEST.ASP" --> 
<%
'Here is error number 4:
'objXML.loadXML("<?xml version='1.0' encoding='UTF-8'?> <ACTIONRESULTXML/>")

Dim strTest
strTest = "MySample"
%> 
<SCRIPT language="JScript"> 
     var strLocal = "FunnyText";
     var xmlhttp;

     if ("<%=strTest%> " != "MySample")
     {
         alert("Error");
         return;
     }
     xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
     //Here was error number 1:
     xmlhttp.send("<?xml version='1.0' ?> " + strLocal);

     //Here was error number 2:
     //strForms+="</nobr> ";

     //Here is a new error (3) when it's in a line- or block-comment. Is 
in standard 1.62 also!
     /*xmlhttp.Send("<?xml version='1.0' ?> " + strLocal);*/

     if (xmlhttp.status != 200)
     {
         alert("XML Send Error:" + xmlhttp.status + "  " + 
xmlhttp.statustext);
         delete xmlhttp;
         return;
     }

     alert("Sample alert > " + strLocal + "<.\nSecond line.");

     // Sample comment.
     alert("Another stupid alert");
</SCRIPT> 
<HTML> 
     <HEAD> 
         <TITLE> Testpage</TITLE>
     </HEAD> 
     <BODY> 
         <TABLE> 
             <TD > <%=strTest%></TD>
         </TABLE> 
     </BODY> 
</HTML> 


Regards,
Axel
Thread:
Axel Heyne
Neil Hodgson
Iago Rubio

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved