Skip to content

Commit 6a55a8f

Browse files
authored
Merge branch 'main' into cschleiden/readme-2
2 parents 6d3d270 + 94a923c commit 6a55a8f

20 files changed

Lines changed: 866 additions & 92 deletions
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"comments": {
3+
"lineComment": "#"
4+
},
5+
"brackets": [
6+
["{", "}"],
7+
["[", "]"],
8+
["(", ")"]
9+
],
10+
"autoClosingPairs": [
11+
["{", "}"],
12+
["[", "]"],
13+
["(", ")"],
14+
["\"", "\""],
15+
["'", "'"]
16+
],
17+
"surroundingPairs": [
18+
["{", "}"],
19+
["[", "]"],
20+
["(", ")"],
21+
["\"", "\""],
22+
["'", "'"]
23+
],
24+
"colorizedBracketPairs": [["${{", "}}"]],
25+
"folding": {
26+
"offSide": true,
27+
"markers": {
28+
"start": "^\\s*#\\s*region\\b",
29+
"end": "^\\s*#\\s*endregion\\b"
30+
}
31+
},
32+
"indentationRules": {
33+
"increaseIndentPattern": "^\\s*.*(:|-) ?(&\\w+)?(\\{[^}\"']*|\\([^)\"']*)?$",
34+
"decreaseIndentPattern": "^\\s+\\}$"
35+
}
36+
}

syntaxes/expressions.tmGrammar.json renamed to language/syntaxes/expressions.tmGrammar.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"scopeName": "source.yaml.github-actions-expression",
3-
"injectionSelector": "L:source.yaml",
2+
"scopeName": "source.github-actions-workflow.github-actions-expression",
3+
"injectionSelector": "L:source.github-actions-workflow",
44
"patterns": [
55
{
66
"include": "#expression"
@@ -11,7 +11,7 @@
1111
],
1212
"repository": {
1313
"expression": {
14-
"match": "\\$\\{\\{(.*?)\\}\\}",
14+
"match": "[|-]?\\$\\{\\{(.*?)\\}\\}",
1515
"name": "meta.embedded.block.github-actions-expression",
1616
"captures": {
1717
"1": {
@@ -45,7 +45,7 @@
4545
"1": {
4646
"patterns": [
4747
{
48-
"include": "source.yaml"
48+
"include": "source.github-actions-workflow"
4949
}
5050
]
5151
},
@@ -89,7 +89,7 @@
8989
"patterns": [
9090
{
9191
"name": "variable.other.read.github-actions-expression",
92-
"match": "\\b[A-Za-z][A-Za-z0-9_]*\\b"
92+
"match": "\\b[A-Za-z][A-Za-z0-9_\\-]*\\b"
9393
}
9494
]
9595
},

0 commit comments

Comments
 (0)