/scalate-jruby/src/main/resources/haml-3.0.25/lib/sass/scss/script_lexer.rb
http://github.com/scalate/scalate · Ruby · 15 lines · 11 code · 1 blank · 3 comment · 1 complexity · e90b8cf989a13e8b09b7e388b56e8438 MD5 · raw file
- module Sass
- module SCSS
- # A mixin for subclasses of {Sass::Script::Lexer}
- # that makes them usable by {SCSS::Parser} to parse SassScript.
- # In particular, the lexer doesn't support `!` for a variable prefix.
- module ScriptLexer
- private
- def variable
- return [:raw, "!important"] if scan(Sass::SCSS::RX::IMPORTANT)
- _variable(/(\$)(#{Sass::SCSS::RX::IDENT})/)
- end
- end
- end
- end