forked from jinliming2/vscode-go-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
246 lines (246 loc) · 6.97 KB
/
package.json
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
{
"name": "vscode-go-jet-template",
"displayName": "Go Jet Template Support",
"description": "Syntax highlight support for Go Jet Templates",
"version": "0.2.1",
"publisher": "james-andrewsmith",
"license": "MIT",
"homepage": "https://github.com/james-andrewsmith/vscode-go-jet-template",
"repository": {
"type": "git",
"url": "https://github.com/james-andrewsmith/vscode-go-jet-template.git"
},
"bugs": {
"url": "https://github.com/james-andrewsmith/vscode-go-jet-template/issues",
"email": "james.andrewsmith@me.com"
},
"engines": {
"vscode": "^1.44.0"
},
"galleryBanner": {
"color": "#232323",
"theme": "dark"
},
"icon": "assets/logo.png",
"categories": [
"Programming Languages"
],
"keywords": [
"go",
"template",
"highlight",
"syntax"
],
"main": "./out/extension.js",
"scripts": {
"vscode:prepublish": "npm run compile",
"clean": "rm -rf ./{out,coverage,.nyc_output}",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@tsconfig/node12": "1.0.7",
"@types/chai": "4.2.15",
"@types/chai-arrays": "2.0.0",
"@types/glob": "7.1.3",
"@types/mocha": "8.2.1",
"@types/node": "12",
"@types/vscode": "1.44.0",
"@typescript-eslint/eslint-plugin": "4.17.0",
"@typescript-eslint/parser": "4.17.0",
"chai": "4.3.3",
"chai-arrays": "2.2.0",
"eslint": "7.21.0",
"eslint-config-prettier": "8.1.0",
"eslint-plugin-prettier": "3.3.1",
"glob": "7.1.6",
"mocha": "8.3.1",
"nyc": "15.1.0",
"prettier": "2.2.1",
"typescript": "4.2.3",
"vscode-test": "1.5.1"
},
"activationEvents": [
"onStartupFinished",
"onCommand:go-jet-template.reload"
],
"contributes": {
"languages": [
{
"id": "go-jet-template",
"aliases": [
"Go Template",
"go-jet-template"
],
"extensions": [
".go.txt",
".go.tpl",
".go.tmpl",
".gtpl"
],
"firstLine": "[\\t ]*\\{\\{(-[\\t ])?\\/\\*.*?\\*\\/([\\t ]-)?\\}\\}[\\t ]*",
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "go-jet-template",
"scopeName": "source.go-jet-template",
"path": "./syntaxes/go-jet-template.tmLanguage.json"
},
{
"language": "go-jet-template",
"scopeName": "source.go.injection.double.go-jet-template",
"path": "./syntaxes/go-double.go-jet-template.tmLanguage.json",
"injectTo": [
"source.go"
]
},
{
"language": "go-jet-template",
"scopeName": "source.go.injection.raw.go-jet-template",
"path": "./syntaxes/go-raw.go-jet-template.tmLanguage.json",
"injectTo": [
"source.go"
]
},
{
"language": "go-jet-template",
"scopeName": "text.injection.go-jet-template",
"path": "./syntaxes/injection.go-jet-template.tmLanguage.json",
"injectTo": [
"source.css",
"source.js",
"source.json",
"text.html.derivative",
"text.xml"
]
},
{
"scopeName": "text.markdown.go-jet-template.codeblock",
"path": "./syntaxes/markdown.go-jet-template.tmLanguage.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.go-jet-template": "go-jet-template"
}
}
],
"semanticTokenScopes": [
{
"scopes": {
"goTemplate": [
"source.go-jet-template"
],
"begin": [
"punctuation.section.embedded.begin.go-jet-template"
],
"end": [
"punctuation.section.embedded.end.go-jet-template"
],
"rawString": [
"string.quoted.raw.go-jet-template"
],
"assignment": [
"keyword.operator.assignment.go-jet-template"
],
"pipe": [
"keyword.operator.pipe.go-jet-template"
],
"control": [
"keyword.control.go-jet-template"
],
"builtin": [
"support.function.builtin.go-jet-template"
],
"stringEscape": [
"constant.character.escape.go-jet-template"
],
"unknownEscape": [
"invalid.illegal.unknown-escape.go-jet-template"
],
"placeholder": [
"constant.other.placeholder.go-jet-template"
]
}
}
],
"semanticTokenTypes": [
{
"id": "goTemplate"
},
{
"id": "begin",
"superType": "operator",
"description": "Begin of Go Template"
},
{
"id": "end",
"superType": "operator",
"description": "End of Go Template"
},
{
"id": "rawString",
"superType": "string"
},
{
"id": "assignment",
"superType": "operator"
},
{
"id": "pipe",
"superType": "operator"
},
{
"id": "control",
"superType": "keyword"
},
{
"id": "builtin",
"superType": "function"
},
{
"id": "stringEscape",
"superType": "string"
},
{
"id": "unknownEscape",
"superType": "string"
},
{
"id": "placeholder",
"superType": "string"
}
],
"configuration": {
"title": "Go Template Support",
"properties": {
"go-jet-template.languages": {
"type": "array",
"items": {
"type": "string"
},
"description": "language id, like \"toml\", \"yaml\", etc."
},
"go-jet-template.patterns": {
"type": "array",
"items": {
"type": "string"
},
"markdownDescription": "A file glob pattern to match file paths against. This can either be a glob pattern string (like `**/*.yaml` or `**/*.{yaml,yml}`).\nGlob patterns can have the following syntax:\n\n* `*` to match one or more characters in a path segment\n* `?` to match on one character in a path segment\n* `**` to match any number of path segments, including none\n* `{}` to group conditions (e.g. `**/*.{ts,js}` matches all TypeScript and JavaScript files)\n* `[]` to declare a range of characters to match in a path segment (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …)\n* `[!...]` to negate a range of characters to match in a path segment (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but not `example.0`)\n\nNote: a backslash (`\\`) is not valid within a glob pattern."
}
}
},
"commands": [
{
"command": "go-jet-template.reload",
"title": "Reload Go Template Syntax Highlight Support",
"category": "Go Template"
}
]
}
}