| 299 | } |
| 300 | |
| 301 | inline char *parsequotes(const char *&p) |
| 302 | { |
| 303 | const char *word = p + 1; |
| 304 | do |
| 305 | { |
| 306 | p++; |
| 307 | p += strcspn(p, "\"\n\r"); |
| 308 | } |
| 309 | while(*p == '\"' && p[-1] == '\\'); // skip escaped quotes |
| 310 | char *s = newstring(word, p - word); |
| 311 | #ifndef STANDALONE |
| 312 | filterrichtext(s, s, p - word); |
| 313 | #endif |
| 314 | if(*p=='\"') p++; |
| 315 | return s; |
| 316 | } |
| 317 | |
| 318 | char *lookup(char *n, int levels); |
| 319 |
no test coverage detected