diff --git a/services/web/frontend/js/features/source-editor/lezer-latex/README.md b/services/web/frontend/js/features/source-editor/lezer-latex/README.md index a9aad9b32b..b91358f490 100644 --- a/services/web/frontend/js/features/source-editor/lezer-latex/README.md +++ b/services/web/frontend/js/features/source-editor/lezer-latex/README.md @@ -61,7 +61,7 @@ make test_unit MOCHA_GREP='lezer-latex' ## Trying the parser While developing the parser, you can run it against a file by calling the `lezer-latex:run` task. There are -some example files in the test suite, at `web/test/frontend/shared/lezer-latex/examples/`. +some example files in the test suite, at `web/test/unit/src/LezerLatex/examples/`. For example: diff --git a/services/web/scripts/lezer-latex/benchmark.mjs b/services/web/scripts/lezer-latex/benchmark.mjs index 26dad5c474..d2ca0bc714 100644 --- a/services/web/scripts/lezer-latex/benchmark.mjs +++ b/services/web/scripts/lezer-latex/benchmark.mjs @@ -13,7 +13,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url)) const examplesDir = path.join( __dirname, - '../../test/unit/src/lezer-latex/examples' + '../../test/unit/src/LezerLatex/examples' ) const strictParser = parser.configure({ strict: true }) // throw exception for invalid documents diff --git a/services/web/scripts/lezer-latex/run.mjs b/services/web/scripts/lezer-latex/run.mjs index d25d9887dc..5d78f5b67e 100644 --- a/services/web/scripts/lezer-latex/run.mjs +++ b/services/web/scripts/lezer-latex/run.mjs @@ -6,9 +6,9 @@ import { parser as BibTeXParser } from '../../frontend/js/features/source-editor // Runs the lezer-latex or lezer-bibtex parser on a supplied file, and prints the resulting // parse tree to stdout // -// show parse tree: lezer-latex-run.js test/frontend/shared/lezer-latex/examples/amsmath.tex -// lezer-latex-run.js test/frontend/shared/lezer-latex/examples/overleaf.bib -// show error summary: lezer-latex-run.js coverage test/frontend/shared/lezer-latex/examples/amsmath.tex +// show parse tree: lezer-latex-run.js test/unit/src/LezerLatex/examples/amsmath.tex +// lezer-latex-run.js test/unit/src/LezerLatex/examples/overleaf.bib +// show error summary: lezer-latex-run.js coverage test/unit/src/LezerLatex/examples/amsmath.tex let files = process.argv.slice(2) if (!files.length) { diff --git a/services/web/scripts/lezer-latex/test-incremental-parser.mjs b/services/web/scripts/lezer-latex/test-incremental-parser.mjs index 2fcdde564a..11cef79682 100644 --- a/services/web/scripts/lezer-latex/test-incremental-parser.mjs +++ b/services/web/scripts/lezer-latex/test-incremental-parser.mjs @@ -14,7 +14,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url)) const examplesDir = path.join( __dirname, - '../../test/unit/src/lezer-latex/examples' + '../../test/unit/src/LezerLatex/examples' ) const folder = examplesDir