We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32a9326 commit 1c37782Copy full SHA for 1c37782
src/scanner.c
@@ -24,7 +24,7 @@ static bool is_num_char(int32_t c) {
24
25
bool tree_sitter_rust_external_scanner_scan(void *payload, TSLexer *lexer,
26
const bool *valid_symbols) {
27
- if (valid_symbols[STRING_CONTENT]) {
+ if (valid_symbols[STRING_CONTENT] && !valid_symbols[FLOAT_LITERAL]) {
28
bool has_content = false;
29
for (;;) {
30
if (lexer->lookahead == '\"' || lexer->lookahead == '\\') {
0 commit comments