Class | Sass::SCSS::StaticParser |
In: |
lib/sass/scss/static_parser.rb
|
Parent: | Parser |
SELECTOR_PSEUDO_CLASSES | = | %w(not matches current any has host host-context).to_set |
PREFIXED_SELECTOR_PSEUDO_CLASSES | = | %w(nth-child nth-last-child).to_set |
@see Parser#initialize @param allow_parent_ref [Boolean] Whether to allow the
parent-reference selector, `&`, when parsing the document.
@comment
rubocop:disable ParameterLists
Parses the text as a selector.
@param filename [String, nil] The file in which the selector appears,
or nil if there is no such file. Used for error reporting.
@return [Selector::CommaSequence] The parsed selector @raise [Sass::SyntaxError] if there‘s a syntax error in the selector
Parses a static at-root query.
@return [(Symbol, Array<String>)] The type of the query
(`:with` or `:without`) and the values that are being filtered.
@raise [Sass::SyntaxError] if there‘s a syntax error in the query,
or if it doesn't take up the entire input string.