MCPcopy Create free account
hub / github.com/ajkhoury/ReClassEx / IsPyStringStart

Function IsPyStringStart

scintilla/src/LexPython.cxx:29–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29static bool IsPyStringStart(int ch, int chNext, int chNext2) {
30 if (ch == '\'' || ch == '"')
31 return true;
32 if (ch == 'u' || ch == 'U') {
33 if (chNext == '"' || chNext == '\'')
34 return true;
35 if ((chNext == 'r' || chNext == 'R') && (chNext2 == '"' || chNext2 == '\''))
36 return true;
37 }
38 if ((ch == 'r' || ch == 'R') && (chNext == '"' || chNext == '\''))
39 return true;
40
41 return false;
42}
43
44/* Return the state to use for the string starting at i; *nextIndex will be set to the first index following the quote(s) */
45static int GetPyStringState(Accessor &styler, int i, unsigned int *nextIndex) {

Callers 1

ColourisePyDocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected