Class: Sass::SCSS::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/sass_tumblr.rb

Overview

See lib/sass/scss/parser.rb

Instance Method Summary collapse

Instance Method Details

#almost_any_value_tokenObject



41
42
43
# File 'lib/sass_tumblr.rb', line 41

def almost_any_value_token
  tok(TUMBLR_VAR) || almost_any_value_token_without_tumblr
end

#almost_any_value_token_without_tumblrObject

Handle Tumblr variable tags in CSS selector Used from StaticParser and Parser.



40
# File 'lib/sass_tumblr.rb', line 40

alias :almost_any_value_token_without_tumblr :almost_any_value_token

#interp_ident(ident = IDENT) ⇒ Object



48
49
50
51
52
53
54
# File 'lib/sass_tumblr.rb', line 48

def interp_ident(ident = IDENT)
  if var = tok(TUMBLR_VAR)
    [var]
  else
    interp_ident_without_tumblr(ident)
  end
end

#interp_ident_without_tumblrObject

Handle Tumblr variable tags in CSS key Used from StaticParser and Parser.



47
# File 'lib/sass_tumblr.rb', line 47

alias :interp_ident_without_tumblr :interp_ident

#value!Object



59
60
61
62
63
64
65
# File 'lib/sass_tumblr.rb', line 59

def value!
  if var = tok?(TUMBLR_VAR)
    sass_script(:parse)
  else
    value_without_tumblr!
  end
end

#value_without_tumblr!Object

Avoid to parse first “{” as a block in declaration for Tumblr variable tags in CSS value Used from all parsers.



58
# File 'lib/sass_tumblr.rb', line 58

alias :value_without_tumblr! :value!