We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66fc95d commit 538a158Copy full SHA for 538a158
1 file changed
src/scanner.c
@@ -239,8 +239,11 @@ bool tree_sitter_rescript_external_scanner_scan(
239
if (lexer->lookahead == 'n') {
240
advance(lexer);
241
if (lexer->lookahead == 'd') {
242
- // Ignore new lines before `and` keyword (recursive definition)
243
- in_multiline_statement = true;
+ advance(lexer);
+ if (is_whitespace(lexer->lookahead)) {
244
+ // Ignore new lines before `and` keyword (recursive definition)
245
+ in_multiline_statement = true;
246
+ }
247
}
248
249
0 commit comments