| 79 | } |
| 80 | |
| 81 | bool 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 | |
| 96 | bool IsPyFStringState(int st) { |
| 97 | return ((st == SCE_P_FCHARACTER) || (st == SCE_P_FSTRING) || |
no test coverage detected