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

Function IsDocCommentEnd

scintilla/lexers/LexOScript.cxx:109–111  ·  view source on GitHub ↗

Checks if the current line starts with the preprocessor directive that is complementary to the #ifdef DOC start: #endif. This method is supposed to be called if the current state point to the documentation comment. QUESTIONAL ASSUMPTION: The complete #endif directive is not checked; just the starting #e. However, there is no other preprocessor directive with the same starting letter and thus this

Source from the content-addressed store, hash-verified

107// the starting #e. However, there is no other preprocessor directive with
108// the same starting letter and thus this optimization should always work.
109static bool IsDocCommentEnd(StyleContext &sc) {
110 return sc.ch == '#' && sc.chNext == 'e';
111}
112
113class IdentifierClassifier {
114 WordList &keywords; // Passed from keywords property.

Callers 1

ColouriseOScriptDocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected