| 226 | } |
| 227 | |
| 228 | static bool detect_comment_start(TSLexer *lexer) { |
| 229 | lexer->mark_end(lexer); |
| 230 | // Comments should not affect indentation |
| 231 | if (lexer->lookahead == '/') { |
| 232 | advance(lexer); |
| 233 | if (lexer->lookahead == '/' || lexer -> lookahead == '*') { |
| 234 | return true; |
| 235 | } |
| 236 | } |
| 237 | return false; |
| 238 | } |
| 239 | |
| 240 | static bool scan_word(TSLexer *lexer, const char* const word) { |
| 241 | for (uint8_t i = 0; word[i] != '\0'; i++) { |
no test coverage detected