Skip to content

Commit

Permalink
Handle variable expension inside shell
Browse files Browse the repository at this point in the history
  • Loading branch information
idillon-sfl committed Feb 1, 2024
1 parent 10bacac commit 3816ad2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ module.exports = grammar({
'{',
repeat(choice(
$.shell_content,
$.variable_expansion,
$.inline_python,
)),
'}',
Expand Down
4 changes: 2 additions & 2 deletions src/scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,9 @@ bool tree_sitter_bitbake_external_scanner_scan(void *payload, TSLexer *lexer, co
brace_depth++;
if (lexer->lookahead == '@') {
advance(lexer);
lexer->result_symbol = SHELL_CONTENT;
return advance_once;
}
lexer->result_symbol = SHELL_CONTENT;
return advance_once;
}
advance_once = true;
break;
Expand Down

0 comments on commit 3816ad2

Please sign in to comment.