class Sass::SCSS::StaticParser

def parse_static_at_root_query

Raises:
  • (Sass::SyntaxError) - if there's a syntax error in the query,

Returns:
  • ((Symbol, Array)) - The type of the query
def parse_static_at_root_query
  init_scanner!
  tok!(/\(/); ss
  type = tok!(/\b(without|with)\b/).to_sym; ss
  tok!(/:/); ss
  directives = expr!(:at_root_directive_list); ss
  tok!(/\)/)
  expected("@at-root query list") unless @scanner.eos?
  return type, directives
end