| 238 | } |
| 239 | |
| 240 | static bool scan_word(TSLexer *lexer, const char* const word) { |
| 241 | for (uint8_t i = 0; word[i] != '\0'; i++) { |
| 242 | if (lexer->lookahead != word[i]) { |
| 243 | return false; |
| 244 | } |
| 245 | advance(lexer); |
| 246 | } |
| 247 | return !iswalnum(lexer->lookahead); |
| 248 | } |
| 249 | |
| 250 | // Returns true if the lookahead starts a leading infix operator — a symbolic |
| 251 | // operator or back-ticked identifier followed by whitespace and then a |
no test coverage detected