Skip to content

Commit 532fb98

Browse files
committed
Handle variable expension inside shell
1 parent 7e0e2ac commit 532fb98

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

grammar.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ module.exports = grammar({
257257
'{',
258258
repeat(choice(
259259
$.shell_content,
260+
$.variable_expansion,
260261
$.inline_python,
261262
$.function_definition,
262263
)),

src/scanner.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,9 +473,9 @@ bool tree_sitter_bitbake_external_scanner_scan(void *payload, TSLexer *lexer, co
473473
brace_depth++;
474474
if (lexer->lookahead == '@') {
475475
advance(lexer);
476-
lexer->result_symbol = SHELL_CONTENT;
477-
return advance_once;
478476
}
477+
lexer->result_symbol = SHELL_CONTENT;
478+
return advance_once;
479479
}
480480
advance_once = true;
481481
break;

0 commit comments

Comments
 (0)