Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/lint_grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"}
Expand Down