MCPcopy Create free account
hub / github.com/cxasm/notepad-- / IsPyStringStart

Function IsPyStringStart

src/qscint/scintilla/lexers/LexPython.cpp:81–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81bool IsPyStringStart(int ch, int chNext, int chNext2, literalsAllowed allowed) {
82 if (ch == '\'' || ch == '"')
83 return true;
84 if (IsPyStringTypeChar(ch, allowed)) {
85 if (chNext == '"' || chNext == '\'')
86 return true;
87 if ((chNext == 'r' || chNext == 'R') && (chNext2 == '"' || chNext2 == '\''))
88 return true;
89 }
90 if ((ch == 'r' || ch == 'R') && (chNext == '"' || chNext == '\''))
91 return true;
92
93 return false;
94}
95
96bool IsPyFStringState(int st) {
97 return ((st == SCE_P_FCHARACTER) || (st == SCE_P_FSTRING) ||

Callers 1

LexMethod · 0.85

Calls 1

IsPyStringTypeCharFunction · 0.85

Tested by

no test coverage detected