mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-07-13 07:55:00 +00:00

* dev: robust if syntax * dev: robust for syntax * dev: if/for with content blocks * dev: robust while syntax * dev: lift identifier matchers * dev: update test case * dev: robust call syntax * dev: robust arrow func syntax * dev: robust set syntax * dev: robust show syntax * dev: robust let syntax * dev: robust string literal syntax * dev: robust include syntax * dev: robust import syntax * dev: expression continuation * dev: error tolerance * dev: robust inline/blocky raw syntax * dev: chore fixes * dev: fix call and raw * dev: fix some markup * dev: refactor many markup patterns * dev: final touches * dev: remove unused dep
38 lines
971 B
JavaScript
38 lines
971 B
JavaScript
// read typst.tmLanguage.json
|
|
|
|
const fs = require("fs");
|
|
const path = require("path");
|
|
{
|
|
const filePath = path.join(__dirname, "../typst.tmLanguage.json");
|
|
|
|
const data = fs.readFileSync(filePath, "utf8");
|
|
|
|
const json = JSON.parse(data);
|
|
|
|
// todo: make it back when we finished
|
|
// delete json.repository.fenced_code_block_typst.patterns;
|
|
|
|
const outPath = path.join(
|
|
__dirname,
|
|
"../../../editors/vscode/out/typst.tmLanguage.json"
|
|
);
|
|
|
|
fs.writeFileSync(outPath, JSON.stringify(json, null, 4), "utf8");
|
|
}
|
|
{
|
|
const filePath = path.join(__dirname, "../typst-code.tmLanguage.json");
|
|
|
|
const data = fs.readFileSync(filePath, "utf8");
|
|
|
|
const json = JSON.parse(data);
|
|
|
|
// todo: make it back when we finished
|
|
// delete json.repository.fenced_code_block_typst.patterns;
|
|
|
|
const outPath = path.join(
|
|
__dirname,
|
|
"../../../editors/vscode/out/typst-code.tmLanguage.json"
|
|
);
|
|
|
|
fs.writeFileSync(outPath, JSON.stringify(json, null, 4), "utf8");
|
|
}
|