Skip to content

Commit a676c26

Browse files
committed
Fix '#' in shell content
1 parent 532fb98 commit a676c26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scanner.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ bool tree_sitter_bitbake_external_scanner_scan(void *payload, TSLexer *lexer, co
309309
} else if (lexer->lookahead == '\t') {
310310
indent_length += 8;
311311
skip(lexer);
312-
} else if (lexer->lookahead == '#') {
312+
} else if (lexer->lookahead == '#' && !valid_symbols[SHELL_CONTENT]) {
313313
// If we haven't found an EOL yet,
314314
// then this is a comment after an expression:
315315
// foo = bar # comment

0 commit comments

Comments
 (0)