The new version fixes shell variable expansions outside of strings:
foo() {
echo ${bar}
}
Note the commit that fixes the issue on the tree-sitter-bitbake's branch claims to fix the opposite (variable expansions inside of strings outside of strings). That's because I deleted a commit that "inverted" the issue. The new solution makes sure it works in both cases, and several tests have been added to prevent eventual regressions.
The new version fixes shell variable expansions outside of strings:
Note the commit that fixes the issue on the tree-sitter-bitbake's branch claims to fix the opposite (variable expansions inside of strings outside of strings). That's because I deleted a commit that "inverted" the issue. The new solution makes sure it works in both cases, and several tests have been added to prevent eventual regressions.