Module: Sass::Script
- Defined in:
- /Users/ceppstei/Projects/sass-lang/.sass/lib/sass/script.rb,
/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/script/css_lexer.rb,
/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/script/css_parser.rb,
/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/script/css_variable_warning.rb,
/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/script/functions.rb,
/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/script/lexer.rb,
/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/script/parser.rb
Overview
SassScript is code that’s embedded in Sass documents to allow for property values to be computed from variables.
This module contains code that handles the parsing and evaluation of SassScript.
Defined Under Namespace
Modules: Functions, Tree, Value Classes: CssLexer, CssParser, CssVariableWarning, Lexer, Parser
Constant Summary
Class Method Summary (collapse)
- + (Script::Tree::Node) parse(value, line, offset, options = {})
Parses a string of SassScript.
Class Method Details
+ (Script::Tree::Node) parse(value, line, offset, options = {})
Parses a string of SassScript
26 27 28 29 30 31 32 | # File '/Users/ceppstei/Projects/sass-lang/.sass/lib/sass/script.rb', line 26
def self.parse(value, line, offset, options = {})
Parser.parse(value, line, offset, options)
rescue Sass::SyntaxError => e
e.message << ": #{value.inspect}." if e.message == "SassScript error"
e.modify_backtrace(:line => line, :filename => options[:filename])
raise e
end |