Closed zufuliu closed 1 year ago
<%--
wasn't allowed in old ASP but is in ASP.NET:
Warning: File /ServerBasic.asp Line 4 Expected statement. .
Changing names can be a problem for projects using these definitions.
First bug is code folding;
scriptLanguage
lost on editing inside multiline comment block; same for multiline 1SCE_H_ASPAT1
OK
Here are two bugs for server side comment
<%-- ... --%>
(maybeSCE_H_XCCOMMENT
could be renamed? as it's not unique to XCode/JSP): https://learn.microsoft.com/en-us/troubleshoot/developer/webapps/aspnet/development/inline-expressions#--------server-side-comments-block https://github.com/ScintillaOrg/lexilla/blob/157f28ef9fe019558a572dd1532f9f63a9c2dd01/lexers/LexHTML.cxx#L801-L803 https://github.com/ScintillaOrg/lexilla/blob/157f28ef9fe019558a572dd1532f9f63a9c2dd01/include/LexicalStyles.iface#L287-L288First bug is code folding, I think
fold whole script
block should be promoted beforeif (chNext2 == '@') {
: https://github.com/ScintillaOrg/lexilla/blob/157f28ef9fe019558a572dd1532f9f63a9c2dd01/lexers/LexHTML.cxx#L1516-L1541Second bug is
scriptLanguage
lost on editing inside multiline comment block (e.g. press Enter before--%>
), which cause comment block not terminated athandle the end of a pre-processor = Non-HTML
. this is same for multilineSCE_H_ASPAT
. ChangeScriptOfState()
to returneScriptVBS
forSCE_H_XCCOMMENT
andSCE_H_ASPAT
fixed the problem. alsoScriptOfState()
likely has bug forSCE_HPHP_COMPLEX_VARIABLE
.