Skip to content

Commit 809e22f

Browse files
cdce8pdncrews
authored andcommitted
Allow inline expressions to span multiple lines
1 parent 0e62ee5 commit 809e22f

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

language/syntaxes/expressions.tmGrammar.json

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"injectionSelector": "L:source.github-actions-workflow",
44
"patterns": [
55
{
6-
"include": "#inline-expression"
6+
"include": "#block-inline-expression"
77
},
88
{
99
"include": "#block-if-expression"
@@ -13,18 +13,15 @@
1313
}
1414
],
1515
"repository": {
16-
"inline-expression": {
17-
"match": "[|-]?\\$\\{\\{(.*?)\\}\\}",
16+
"block-inline-expression": {
1817
"name": "meta.embedded.block.github-actions-expression",
19-
"captures": {
20-
"1": {
21-
"patterns": [
22-
{
23-
"include": "#expression"
24-
}
25-
]
18+
"begin": "[|-]?\\$\\{\\{",
19+
"end": "\\}\\}",
20+
"patterns": [
21+
{
22+
"include": "#expression"
2623
}
27-
}
24+
]
2825
},
2926
"block-if-expression": {
3027
"contentName": "meta.embedded.block.github-actions-expression",

0 commit comments

Comments
 (0)