@cssdoc/spec
v0.15.2
Published
The canonical cssdoc spec: the tag vocabulary and the formal grammar (CssDoc.grammarkdown), the single source of truth shared by the parser and every syntax grammar. Zero runtime dependencies.
Maintainers
Readme
@cssdoc/spec
The canonical cssdoc tag vocabulary — the single source of truth for the doc-comment tags, shared by the parser and every syntax grammar. Zero dependencies, data only.
Each tag carries its name, syntactic kind (record / block / modifier / inline), any
aliasFor target, whether it allowMultiple, its recordKind (for record tags), and its argument
shape (for the three argument-bearing tags: @modifier, @part/@slot, @cssproperty).
import { CSSDOC_TAGS, cssdocTagNamesByKind, cssdocTagNamesByArgument } from "@cssdoc/spec";
cssdocTagNamesByKind("inline"); // ["link", "inheritDoc", "label"]
cssdocTagNamesByArgument("custom-property"); // ["cssproperty", "property"]Consumers
@cssdoc/coreseeds its parser's tag-definition registry fromCSSDOC_TAGS.@cssdoc/tmlanguagegenerates its TextMate grammar from it.@cssdoc/codemirrorbuilds its highlighter's matcher from it.
Add or change a tag here, and the parser and both grammars follow.
