Skip to content

@cssdoc/spec

@cssdoc/spec — the canonical cssdoc tag vocabulary. This is the single source of truth for the doc-comment tags: their names, syntactic kinds, aliases, and (for the three argument-bearing tags) the shape of the argument they take. Everything that needs to know "what are the cssdoc tags" derives it from here:

  • @cssdoc/core seeds its parser configuration from CSSDOC_TAGS.
  • @cssdoc/tmlanguage generates its TextMate grammar from it.
  • @cssdoc/codemirror builds its highlighter's matcher from it.

The package is intentionally zero-dependency and data-only, so a syntax grammar can consume the vocabulary without pulling in the CSS parser.

Interfaces

Type Aliases

Variables

Functions

Released under the MIT License