mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Sass now throws an "unterminated string" error.
git-svn-id: svn://hamptoncatlin.com/haml/trunk@339 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
parent
dccbc77213
commit
3ab2d63916
2 changed files with 4 additions and 0 deletions
|
@ -102,6 +102,9 @@ module Sass
|
|||
str << byte.chr
|
||||
end
|
||||
|
||||
if is_string
|
||||
raise Sass::SyntaxError.new("Unterminated string: #{value.dump}")
|
||||
end
|
||||
str = reset_str.call
|
||||
to_return
|
||||
end
|
||||
|
|
|
@ -9,6 +9,7 @@ class SassEngineTest < Test::Unit::TestCase
|
|||
"!a = 1 + " => 'Constant arithmetic error: "1 +"',
|
||||
"!a = 1 + 2 +" => 'Constant arithmetic error: "1 + 2 +"',
|
||||
"!a = hello \"world\"" => 'Constant arithmetic error: "hello \\"world\\""',
|
||||
"!a = \"b" => 'Unterminated string: "\\"b"',
|
||||
"!a = #aaa - a" => 'Undefined operation: "#afafaf minus a"',
|
||||
"!a = #aaa / a" => 'Undefined operation: "#afafaf div a"',
|
||||
"!a = #aaa * a" => 'Undefined operation: "#afafaf times a"',
|
||||
|
|
Loading…
Add table
Reference in a new issue