Skip to content

Commit eefacc0

Browse files
committed
v0.0.7
1 parent d77fe78 commit eefacc0

File tree

3 files changed

+294
-199
lines changed

3 files changed

+294
-199
lines changed

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"type": "git",
77
"url": "https://github.com/pbkit/vscode-pbkit.git"
88
},
9-
"version": "0.0.6",
9+
"version": "0.0.7",
1010
"publisher": "pbkit",
1111
"icon": "pbkit.png",
1212
"license": "(MIT OR Apache-2.0)",
1313
"engines": {
14-
"vscode": "^1.51.0"
14+
"vscode": "^1.85.0"
1515
},
1616
"activationEvents": [
1717
"onLanguage:proto"
@@ -88,18 +88,18 @@
8888
},
8989
"scripts": {
9090
"build:ext": "esbuild ./src/extension.ts --bundle --outfile=./dist/main.js --external:vscode --format=cjs --platform=node",
91-
"build:pbkit": "esbuild ./node_modules/@pbkit/pb-cli/esm/cli/pb/entrypoint.js --bundle --outdir=./dist/@pbkit/pb-cli/esm/cli/pb --format=cjs --platform=node",
91+
"build:pbkit": "esbuild ./node_modules/@pbkit/pb-cli/esm/cli/pb/entrypoint.js --bundle --outdir=./dist/@pbkit/pb-cli/esm/cli/pb --format=esm --banner:js='(async()=>{' --footer:js='})()' --define:import.meta.url=undefined --platform=node",
9292
"build": "npm run build:ext && npm run build:pbkit"
9393
},
9494
"devDependencies": {
95-
"@types/node": "^17.0.17",
96-
"@types/vscode": "^1.51.0",
97-
"@vscode/vsce": "^2.20.1",
98-
"esbuild": "^0.14.21",
95+
"@types/node": "^20.10.4",
96+
"@types/vscode": "^1.85.0",
97+
"@vscode/vsce": "^2.22.0",
98+
"esbuild": "^0.19.9",
9999
"vscode-test": "^1.6.1"
100100
},
101101
"dependencies": {
102-
"@pbkit/pb-cli": "^0.0.51",
103-
"vscode-languageclient": "^7.0.0"
102+
"@pbkit/pb-cli": "^0.0.67",
103+
"vscode-languageclient": "^9.0.1"
104104
}
105105
}

syntaxes/proto.tmLanguage.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
{
66
"include": "#syntax"
77
},
8+
{
9+
"include": "#edition"
10+
},
811
{
912
"include": "#import"
1013
},
@@ -58,6 +61,33 @@
5861
}
5962
]
6063
},
64+
"edition": {
65+
"name": "meta.edition.proto",
66+
"begin": "\\b(edition)\\s*(=)\\s*",
67+
"beginCaptures": {
68+
"1": {
69+
"name": "keyword.edition.proto"
70+
},
71+
"2": {
72+
"name": "punctuation.separator.key-value.proto"
73+
}
74+
},
75+
"end": "\\;",
76+
"endCaptures": {
77+
"0": {
78+
"name": "punctuation.terminator.proto"
79+
}
80+
},
81+
"contentName": "meta.edition.value.proto",
82+
"patterns": [
83+
{
84+
"include": "#qstring-single"
85+
},
86+
{
87+
"include": "#qstring-double"
88+
}
89+
]
90+
},
6191
"import": {
6292
"name": "meta.import.proto",
6393
"begin": "\\b(import)\\s*",

0 commit comments

Comments
 (0)