Class: Sass::SCSS::Parser
- Inherits:
-
Object
- Object
- Sass::SCSS::Parser
- Defined in:
- lib/sass_tumblr.rb
Overview
See lib/sass/scss/parser.rb
Instance Method Summary collapse
- #almost_any_value_token ⇒ Object
-
#almost_any_value_token_without_tumblr ⇒ Object
Handle Tumblr variable tags in CSS selector Used from StaticParser and Parser.
- #interp_ident(ident = IDENT) ⇒ Object
-
#interp_ident_without_tumblr ⇒ Object
Handle Tumblr variable tags in CSS key Used from StaticParser and Parser.
- #value! ⇒ Object
-
#value_without_tumblr! ⇒ Object
Avoid to parse first “{” as a block in declaration for Tumblr variable tags in CSS value Used from all parsers..
Instance Method Details
#almost_any_value_token ⇒ Object
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_tumblr ⇒ Object
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_tumblr ⇒ Object
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! |