MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / isCommentASPState

Function isCommentASPState

scintilla/lexers/LexHTML.cxx:224–242  ·  view source on GitHub ↗

not really well done, since it's only comments that should lex the %> and <%

Source from the content-addressed store, hash-verified

222
223// not really well done, since it's only comments that should lex the %> and <%
224static inline bool isCommentASPState(int state) {
225 bool bResult;
226
227 switch (state) {
228 case SCE_HJ_COMMENT:
229 case SCE_HJ_COMMENTLINE:
230 case SCE_HJ_COMMENTDOC:
231 case SCE_HB_COMMENTLINE:
232 case SCE_HP_COMMENTLINE:
233 case SCE_HPHP_COMMENT:
234 case SCE_HPHP_COMMENTLINE:
235 bResult = true;
236 break;
237 default :
238 bResult = false;
239 break;
240 }
241 return bResult;
242}
243
244static void classifyAttribHTML(unsigned int start, unsigned int end, WordList &keywords, Accessor &styler) {
245 bool wordIsNumber = IsNumber(start, styler);

Callers 1

ColouriseHyperTextDocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected