-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpackage.json
More file actions
218 lines (218 loc) · 5.93 KB
/
Copy pathpackage.json
File metadata and controls
218 lines (218 loc) · 5.93 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
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
{
"name": "peggy-language",
"displayName": "Peggy Language",
"description": "Syntax highlighting and error reporting for Peggy",
"version": "3.4.3",
"license": "MIT",
"publisher": "PeggyJS",
"author": {
"name": "Tobias Kahlert",
"email": "code.databyte@gmail.com"
},
"homepage": "https://github.com/peggyjs/code-peggy-language",
"categories": [
"Debuggers",
"Programming Languages",
"Snippets"
],
"icon": "images/icon.png",
"bugs": {
"url": "https://github.com/peggyjs/code-peggy-language/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/peggyjs/code-peggy-language"
},
"main": "./dist/client",
"contributes": {
"configuration": {
"title": "Peggy Language",
"type": "object",
"properties": {
"peggyLanguageServer.consoleInfo": {
"description": "Show info messages that don't have locations in the console",
"type": "boolean",
"default": false
},
"peggyLanguageServer.markInfo": {
"description": "Mark all diagnostics, even merely informative ones",
"type": "boolean",
"default": true
},
"peggyLanguageServer.debounceMS": {
"description": "Time, in milliseconds, to debounce typing",
"type": "integer",
"default": 200,
"minimum": 0
},
"peggyLanguageServer.filePattern": {
"markdownDescription": "Convert a grammar name to a JS file to output, using this first `%s` as the directory and the second `%s` as the unsuffixed name of the grammar.",
"type": "string",
"default": "%s/%s.js"
}
}
},
"languages": [
{
"id": "peggy",
"aliases": [
"Peggy",
"peggy",
"PEG.js",
"pegjs",
"peg.js"
],
"extensions": [
".peggy",
".pegjs"
],
"configuration": "./peggy.configuration.json",
"icon": {
"light": "./images/peggy-icon-light.png",
"dark": "./images/peggy-icon-dark.png"
}
}
],
"grammars": [
{
"language": "peggy",
"scopeName": "source.peggy",
"path": "./syntaxes/peggy.json",
"embeddedLanguages": {
"meta.embedded.block.javascript": "javascript"
}
},
{
"injectTo": [
"source.js",
"source.ts",
"source.js.jsx",
"source.tsx",
"source.vue",
"source.svelte"
],
"scopeName": "inline.peggy",
"path": "./syntaxes/peggy.js.json",
"embeddedLanguages": {
"meta.embedded.block.peggy": "peggy"
}
}
],
"snippets": [
{
"language": "peggy",
"path": "./snippets/snippets.json"
}
],
"menus": {
"editor/context": [
{
"command": "editor.peggyLive",
"group": "3_preview",
"when": "editorLangId == peggy"
},
{
"command": "editor.peggyLiveFromRule",
"group": "3_preview",
"when": "editorLangId == peggy"
}
]
},
"commands": [
{
"command": "editor.peggyLive",
"title": "Peggy Live Preview",
"category": "preview"
},
{
"command": "editor.peggyLiveFromRule",
"title": "Peggy Live from rule under cursor",
"category": "preview"
}
],
"problemMatchers": [
{
"name": "peggy",
"label": "peggy check problems",
"owner": "peggy",
"source": "peggy-language",
"applyTo": "closedDocuments",
"fileLocation": "autoDetect",
"pattern": [
{
"regexp": "^(Error|error|warning|info)\\S*: (.*)$",
"severity": 1,
"message": 2
},
{
"regexp": "^ --> ([^:]+):(\\d+):(\\d+)$",
"file": 1,
"line": 2,
"column": 3
}
]
},
{
"name": "peggy-watch",
"base": "$peggy",
"label": "peggy check watch problems",
"background": {
"activeOnStart": false,
"beginsPattern": "^\"(.+)\" changed...$",
"endsPattern": "^(Wrote|Failed writing): (\".+\")$"
}
}
]
},
"scripts": {
"lint": "eslint .",
"clean": "rimraf ./out ./dist ./coverage",
"vscode:prepublish": "npm run clean && npm run compile:production",
"compile": "npm run check-types && npm run lint && node esbuild.js",
"compile:production": "npm run check-types && npm run lint && node esbuild.js --production",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --watch --noEmit --project tsconfig.json",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"check-types": "tsc --noEmit",
"pretest": "npm run compile-tests && npm run compile",
"test": "vscode-test",
"package": "vsce package --no-dependencies"
},
"devDependencies": {
"@peggyjs/eslint-config": "^6.0.13",
"@types/mocha": "^10.0.10",
"@types/node": "^25.5.0",
"@types/vscode": "^1.110.0",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.7.1",
"esbuild": "^0.27.4",
"eslint": "^10.1.0",
"eslint-plugin-mocha": "^11.2.0",
"npm-run-all": "^4.1.5",
"rimraf": "^6.1.3",
"superc8": "^12.3.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.57.2"
},
"dependencies": {
"@peggyjs/from-mem": "^3.1.3",
"peggy": "^5.1.0",
"source-map-generator": "^2.0.6",
"vscode-languageclient": "^9.0.1",
"vscode-languageserver": "^9.0.1",
"vscode-languageserver-textdocument": "^1.0.12"
},
"overrides": {
"mocha": {
"diff": "8.0.3",
"serialize-javascript": "7.0.4"
}
},
"packageManager": "npm@11.12.0",
"engines": {
"vscode": ">=1.111.0"
}
}