Update grammars (#235506)

This commit is contained in:
Alex Ross
2024-12-06 16:55:37 +01:00
committed by GitHub
parent f7069b2fea
commit 8270a86019
8 changed files with 179 additions and 40 deletions

View File

@@ -4,7 +4,7 @@
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
"Once accepted there, we are happy to receive an update request."
],
"version": "https://github.com/moby/moby/commit/abd39744c6f3ed854500e423f5fabf952165161f",
"version": "https://github.com/moby/moby/commit/c2029cb2574647e4bc28ed58486b8e85883eedb9",
"name": "Dockerfile",
"scopeName": "source.dockerfile",
"patterns": [
@@ -41,6 +41,9 @@
},
"match": "^\\s*(?i:(ONBUILD)\\s+)?(?i:(CMD|ENTRYPOINT))\\s"
},
{
"include": "#string-character-escape"
},
{
"begin": "\"",
"beginCaptures": {
@@ -57,8 +60,7 @@
"name": "string.quoted.double.dockerfile",
"patterns": [
{
"match": "\\\\.",
"name": "constant.character.escaped.dockerfile"
"include": "#string-character-escape"
}
]
},
@@ -78,8 +80,7 @@
"name": "string.quoted.single.dockerfile",
"patterns": [
{
"match": "\\\\.",
"name": "constant.character.escaped.dockerfile"
"include": "#string-character-escape"
}
]
},
@@ -98,5 +99,11 @@
"comment": "comment.line",
"match": "^(\\s*)((#).*$\\n?)"
}
]
],
"repository": {
"string-character-escape": {
"name": "constant.character.escaped.dockerfile",
"match": "\\\\."
}
}
}