Fix path to Lezer LaTeX examples (#14364)
GitOrigin-RevId: bcabe1b73f09078367976456e4d1fddc02688b80
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user