-
Notifications
You must be signed in to change notification settings - Fork 175
Expand file tree
/
Copy pathgithub-script-embedded.tmLanguage.json
More file actions
40 lines (40 loc) · 1.38 KB
/
github-script-embedded.tmLanguage.json
File metadata and controls
40 lines (40 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "GitHub Actions github-script embedded JavaScript",
"scopeName": "source.github-actions-workflow.github-script-embedded",
"injectionSelector": "L:source.github-actions-workflow - meta.github-actions.github-script.context",
"patterns": [
{
"name": "meta.github-actions.github-script.context",
"begin": "(?=^\\s*(?:-\\s+)?uses\\s*:\\s*(?:\\\"actions\\/github-script(?:\\@[A-Za-z0-9._-]+)?\\\"|'actions\\/github-script(?:\\@[A-Za-z0-9._-]+)?'|actions\\/github-script(?:\\@[A-Za-z0-9._-]+)?)(?:\\s+#.*)?$)",
"end": "^(?=\\s*-\\s|\\S|\\z)",
"patterns": [
{
"contentName": "meta.embedded.block.javascript",
"begin": "^(\\s+)(script)(\\s*:\\s*)([>|][-+0-9\\s]*\\s*)(?:#.*)?$",
"beginCaptures": {
"2": {
"name": "entity.name.tag.yaml"
},
"3": {
"name": "punctuation.separator.key-value.mapping.yaml"
},
"4": {
"name": "string.unquoted.block.yaml"
}
},
"end": "^(?!(?:\\1\\s+|\\s*$))",
"patterns": [
{
"include": "source.js"
}
]
},
{
"include": "source.github-actions-workflow"
}
]
}
],
"repository": {}
}