Top Level Namespace

Defined Under Namespace

Modules: Parselly

Constant Summary collapse

CAN_END_COMPOUND =

Pre-computed sets for faster lookup

Set[:IDENT, :STAR, :RPAREN, :RBRACKET, :NUMBER].freeze
CAN_START_COMPOUND =
Set[:IDENT, :STAR, :DOT, :HASH, :LBRACKET, :COLON].freeze
NTH_PSEUDO_NAMES =
Set['nth-child', 'nth-last-child', 'nth-of-type', 'nth-last-of-type', 'nth-col', 'nth-last-col'].freeze
AN_PLUS_B_REGEX =
/^(even|odd|[+-]?\d*n(?:[+-]\d+)?|[+-]?n(?:[+-]\d+)?|\d+)$/i.freeze
SELECTOR_LIST_PSEUDO_NAMES =
Set['is', 'where', 'not'].freeze
RELATIVE_SELECTOR_LIST_PSEUDO_NAMES =
Set['has'].freeze
LEGACY_PSEUDO_ELEMENT_NAMES =
Set['before', 'after', 'first-line', 'first-letter'].freeze
ATTRIBUTE_MODIFIERS =
Set['i', 's'].freeze