@ecss/grammar
v0.2.0
Published
ECSS TextMate grammar — syntax-highlighting rules for .ecss files, shared by the VS Code extension and the docs site.
Downloads
16
Maintainers
Readme
@ecss/grammar
TextMate grammar for ECSS — the syntax-highlighting
rules for .ecss files (scopeName: source.ecss).
This package is the single source of truth for ECSS highlighting. It is consumed by:
- the VS Code extension (
ecss-language-support) viacontributes.grammars; - the documentation site (ecss.webea.ch), to highlight
.ecsscode blocks with Shiki.
Usage
import { createRequire } from 'node:module';
const require = createRequire(import.meta.url);
const ecssGrammar = require('@ecss/grammar/ecss.tmLanguage.json');The published package contains a single file, ecss.tmLanguage.json.
