diff --git a/scripts/lint_grammar.py b/scripts/lint_grammar.py index 1b08f22..192cde8 100644 --- a/scripts/lint_grammar.py +++ b/scripts/lint_grammar.py @@ -7,6 +7,9 @@ Usage: python scripts/lint_grammar.py [path/to/fasmg.tmLanguage.json] + +When no path is provided, lint the generated TextMate grammar under `dist/`, +matching `scripts/gen_all.py --lint`. """ from __future__ import annotations @@ -16,7 +19,7 @@ from pathlib import Path HERE = Path(__file__).resolve().parent -DEFAULT_GRAMMAR = HERE.parent / "fasmg.tmLanguage.json" +DEFAULT_GRAMMAR = HERE.parent / "dist" / "fasmg.tmLanguage.json" # Keys in the grammar JSON that contain regex strings. REGEX_KEYS = {"match", "begin", "end"}