Skip to content

Commit ba842ce

Browse files
committed
Update scripts
1 parent aeef7fd commit ba842ce

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
3. Install [NPM](https://github.com/coreybutler/nvm-windows)
99
4. `npm install` to install dependencies.
1010
5. `npm run textMate` first time and every time grammar is changed.
11-
6. `npm run antlr4ng` first time and every time grammar is changed.
11+
6. `npm run antlr` first time and every time grammar is changed.
1212
7. Create a `.\sample` directory as a default workspace for client debugging (or update .\\.vscode\\launch.json as preferred).
1313
7. (Optional) Install [ANTLR4 grammar syntax support](https://marketplace.visualstudio.com/items?itemName=mike-lischke.vscode-antlr4) VSCode extension.
1414
Note: to debug a grammar, you'll first need to activate the extension by opening one of the *.g4 files.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
126126
"textMate": "npx js-yaml client/src/syntaxes/vba.tmLanguage.yaml > client/out/vba.tmLanguage.json",
127127
"devMate": "npx js-yaml client/src/syntaxes/dev.tmLanguage.yaml > client/out/vba.tmLanguage.json",
128+
"antlr": "npm run antlr4ngPre && npm run antlr4ng && npm run antlr4ngFmt && npm run compile",
128129
"antlr4ng": "antlr4ng -Dlanguage=TypeScript -visitor ./server/src/antlr/vba.g4 -o ./server/src/antlr/out/",
129130
"antlr4ngPre": "antlr4ng -Dlanguage=TypeScript -visitor ./server/src/antlr/vbapre.g4 -o ./server/src/antlr/out/",
130131
"antlr4ngFmt": "antlr4ng -Dlanguage=TypeScript -visitor ./server/src/antlr/vbafmt.g4 -o ./server/src/antlr/out/",

0 commit comments

Comments
 (0)