@codingame/monaco-vscode-docker-default-extension 1.81.8-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,102 @@
1
+ {
2
+ "information_for_contributors": [
3
+ "This file has been converted from https://github.com/moby/moby/blob/master/contrib/syntax/textmate/Docker.tmbundle/Syntaxes/Dockerfile.tmLanguage",
4
+ "If you want to provide a fix or improvement, please create a pull request against the original repository.",
5
+ "Once accepted there, we are happy to receive an update request."
6
+ ],
7
+ "version": "https://github.com/moby/moby/commit/abd39744c6f3ed854500e423f5fabf952165161f",
8
+ "name": "Dockerfile",
9
+ "scopeName": "source.dockerfile",
10
+ "patterns": [
11
+ {
12
+ "captures": {
13
+ "1": {
14
+ "name": "keyword.other.special-method.dockerfile"
15
+ },
16
+ "2": {
17
+ "name": "keyword.other.special-method.dockerfile"
18
+ }
19
+ },
20
+ "match": "^\\s*\\b(?i:(FROM))\\b.*?\\b(?i:(AS))\\b"
21
+ },
22
+ {
23
+ "captures": {
24
+ "1": {
25
+ "name": "keyword.control.dockerfile"
26
+ },
27
+ "2": {
28
+ "name": "keyword.other.special-method.dockerfile"
29
+ }
30
+ },
31
+ "match": "^\\s*(?i:(ONBUILD)\\s+)?(?i:(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR))\\s"
32
+ },
33
+ {
34
+ "captures": {
35
+ "1": {
36
+ "name": "keyword.operator.dockerfile"
37
+ },
38
+ "2": {
39
+ "name": "keyword.other.special-method.dockerfile"
40
+ }
41
+ },
42
+ "match": "^\\s*(?i:(ONBUILD)\\s+)?(?i:(CMD|ENTRYPOINT))\\s"
43
+ },
44
+ {
45
+ "begin": "\"",
46
+ "beginCaptures": {
47
+ "1": {
48
+ "name": "punctuation.definition.string.begin.dockerfile"
49
+ }
50
+ },
51
+ "end": "\"",
52
+ "endCaptures": {
53
+ "1": {
54
+ "name": "punctuation.definition.string.end.dockerfile"
55
+ }
56
+ },
57
+ "name": "string.quoted.double.dockerfile",
58
+ "patterns": [
59
+ {
60
+ "match": "\\\\.",
61
+ "name": "constant.character.escaped.dockerfile"
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "begin": "'",
67
+ "beginCaptures": {
68
+ "1": {
69
+ "name": "punctuation.definition.string.begin.dockerfile"
70
+ }
71
+ },
72
+ "end": "'",
73
+ "endCaptures": {
74
+ "1": {
75
+ "name": "punctuation.definition.string.end.dockerfile"
76
+ }
77
+ },
78
+ "name": "string.quoted.single.dockerfile",
79
+ "patterns": [
80
+ {
81
+ "match": "\\\\.",
82
+ "name": "constant.character.escaped.dockerfile"
83
+ }
84
+ ]
85
+ },
86
+ {
87
+ "captures": {
88
+ "1": {
89
+ "name": "punctuation.whitespace.comment.leading.dockerfile"
90
+ },
91
+ "2": {
92
+ "name": "comment.line.number-sign.dockerfile"
93
+ },
94
+ "3": {
95
+ "name": "punctuation.definition.comment.dockerfile"
96
+ }
97
+ },
98
+ "comment": "comment.line",
99
+ "match": "^(\\s*)((#).*$\\n?)"
100
+ }
101
+ ]
102
+ }
package/index.js ADDED
@@ -0,0 +1,7 @@
1
+ import { registerExtension } from 'vscode/extensions';
2
+
3
+ var manifest = {name:"docker",displayName:"Docker Language Basics",description:"Provides syntax highlighting and bracket matching in Docker files.",version:"1.0.0",publisher:"vscode",license:"MIT",engines:{vscode:"*"},scripts:{"update-grammar":"node ../node_modules/vscode-grammar-updater/bin moby/moby contrib/syntax/textmate/Docker.tmbundle/Syntaxes/Dockerfile.tmLanguage ./syntaxes/docker.tmLanguage.json"},contributes:{languages:[{id:"dockerfile",extensions:[".dockerfile",".containerfile"],filenames:["Dockerfile","Containerfile"],filenamePatterns:["Dockerfile.*","Containerfile.*"],aliases:["Docker","Dockerfile","Containerfile"],configuration:"./language-configuration.json"}],grammars:[{language:"dockerfile",scopeName:"source.dockerfile",path:"./syntaxes/docker.tmLanguage.json"}],configurationDefaults:{"[dockerfile]":{"editor.quickSuggestions":{strings:true}}}},repository:{type:"git",url:"https://github.com/microsoft/vscode.git"},main:undefined};
4
+
5
+ const { registerFileUrl } = registerExtension(manifest);
6
+ registerFileUrl('./syntaxes/docker.tmLanguage.json', new URL('./docker.tmLanguage.json', import.meta.url).toString(), 'application/json');
7
+ registerFileUrl('./language-configuration.json', new URL('./language-configuration.json', import.meta.url).toString(), 'application/json');
@@ -0,0 +1,24 @@
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
+ }
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@codingame/monaco-vscode-docker-default-extension",
3
+ "version": "1.81.8-next.1",
4
+ "keywords": [],
5
+ "author": {
6
+ "name": "CodinGame",
7
+ "url": "http://www.codingame.com"
8
+ },
9
+ "license": "MIT",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/CodinGame/monaco-vscode-api"
13
+ },
14
+ "type": "module",
15
+ "private": false,
16
+ "description": "Default VSCode extension designed to be used with @codingame/monaco-vscode-api",
17
+ "main": "index.js",
18
+ "module": "index.js",
19
+ "dependencies": {
20
+ "vscode": "npm:@codingame/monaco-vscode-api@1.81.8-next.1"
21
+ }
22
+ }