Skip to content

Commit 5b7bac5

Browse files
committed
Squashed commit of the following:
* added the grammar triggers configuration option * the grammar generator is in typescript now to support the dynamic regen
1 parent c0e0ee6 commit 5b7bac5

File tree

8 files changed

+1138
-351
lines changed

8 files changed

+1138
-351
lines changed

.vscodeignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
*.py
2-
sample.png
2+
sample.png
3+
src
4+
build.js
5+
tsconfig.json

build.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const fs = require("fs");
2+
3+
const gen_grammar = require("./out/gen_grammar");
4+
5+
const result = gen_grammar.gen(gen_grammar.DEF_SPECS);
6+
const json = JSON.stringify(result, null, 4);
7+
fs.writeFileSync("./syntaxes/embed-in-python.json", json)

0 commit comments

Comments
 (0)