Skip to content

TagMatcher

Defined in: extensions/matchTags.ts:19

readonly pairs: (number | undefined)[]

Defined in: extensions/matchTags.ts:33

Array mapping the index of a tag to the index of its matching tag.


readonly tags: Tag[]

Defined in: extensions/matchTags.ts:31

Array of tuples containing in the following order:

  • The tag’s Token
  • Its starting position
  • Its ending position
  • Its tag name
  • Whether it’s a closing tag
  • Whether it’s not self-closing

The tags are sorted by their ending position