From ea93cbf7d9c52f925ed296b4714737e8088f3a19 Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Fri, 2 Jun 2023 16:51:39 -0300 Subject: [PATCH 1/2] add type --- src/scanner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scanner.c b/src/scanner.c index b02d8b9..f1832b6 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -151,7 +151,7 @@ bool tree_sitter_rescript_external_scanner_scan( const bool* valid_symbols ) { ScannerState* state = (ScannerState*)payload; - const in_string = state->in_quotes || state->in_backticks; + bool const in_string = state->in_quotes || state->in_backticks; while (is_inline_whitespace(lexer->lookahead) && !in_string) { skip(lexer); From 6e572a905e6c24ca27e41c21a6367fd2a837b757 Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Fri, 9 Jun 2023 17:26:40 -0300 Subject: [PATCH 2/2] Update src/scanner.c Co-authored-by: Victor Nakoryakov --- src/scanner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scanner.c b/src/scanner.c index f1832b6..4c20192 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -151,7 +151,7 @@ bool tree_sitter_rescript_external_scanner_scan( const bool* valid_symbols ) { ScannerState* state = (ScannerState*)payload; - bool const in_string = state->in_quotes || state->in_backticks; + bool in_string = state->in_quotes || state->in_backticks; while (is_inline_whitespace(lexer->lookahead) && !in_string) { skip(lexer);