From 17918a99bcf1bf39b08c09e0690d2ecccda8088d Mon Sep 17 00:00:00 2001 From: Nan Zhong Date: Thu, 30 Nov 2023 22:35:49 -0500 Bug: https://bugs.gentoo.org/912050 Bug: https://bugs.gentoo.org/918941 Subject: [PATCH] languages: update rescript grammar This bump fixes a build failure of the grammer with clang. --- languages.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index 10ed167b028d..f4ff483b2b11 100644 --- a/languages.toml +++ b/languages.toml @@ -1523,7 +1523,7 @@ indent = { tab-width = 2, unit = " " } [[grammar]] name = "rescript" -source = { git = "https://github.com/jaredramirez/tree-sitter-rescript", rev = "65609807c628477f3b94052e7ef895885ac51c3c" } +source = { git = "https://github.com/jaredramirez/tree-sitter-rescript", rev = "467dcf99f68c47823d7b378779a6b282d7ef9782" } [[language]] name = "erlang" diff --git a/runtime/grammars/sources/rescript/src/scanner.c b/runtime/grammars/sources/rescript/src/scanner.c index 9bf9fa4..113ca35 100644 --- a/runtime/grammars/sources/rescript/src/scanner.c +++ b/runtime/grammars/sources/rescript/src/scanner.c @@ -131,7 +131,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; + const bool in_string = state->in_quotes || state->in_backticks; if (valid_symbols[TEMPLATE_CHARS]) { lexer->result_symbol = TEMPLATE_CHARS;