Skip to content

Commit 73bd0f8

Browse files
committed
fix: parse shell content better
1 parent ffe6c2f commit 73bd0f8

File tree

5 files changed

+50122
-49814
lines changed

5 files changed

+50122
-49814
lines changed

grammar.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ module.exports = grammar({
4747
']',
4848
')',
4949
'}',
50+
51+
$.shell_content,
5052
],
5153

5254
extras: $ => [
@@ -227,7 +229,10 @@ module.exports = grammar({
227229
'(',
228230
')',
229231
'{',
230-
alias(/(?:({[^}]*})|[^}])*/, $.shell_content),
232+
repeat(choice(
233+
$.shell_content,
234+
$.inline_python,
235+
)),
231236
'}',
232237
),
233238

src/grammar.json

+17-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node-types.json

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)