Skip to content

Commit

Permalink
Merge branch 'master' into extend
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Apr 23, 2010
2 parents f15fe26 + b84527f commit 1504416
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc-src/SASS_CHANGELOG.md
Expand Up @@ -13,6 +13,14 @@ now allow whitespace before the colon. For example:
foo
color : blue

### Minor Changes

* Running `sass-convert --from sass --to sass` will raise an error
unless `--in-place` is provided,
to prevent accidental erasure of source files.

* SCSS parsing speed is dramatically improved.

### Bug Fixes

* Variables are now allowed as arguments to `url()`.
Expand Down
5 changes: 5 additions & 0 deletions lib/haml/exec.rb
Expand Up @@ -667,6 +667,11 @@ def process_directory
end
@options[:output] ||= @options[:input]

if @options[:to] == @options[:from] && !@options[:in_place]
fmt = @options[:from]
raise "Error: converting from #{fmt} to #{fmt} without --in-place"
end

ext = @options[:from]
ext = :sass if ext == :sass2
Dir.glob("#{@options[:input]}/**/*.#{ext}") do |f|
Expand Down
1 change: 1 addition & 0 deletions lib/sass/scss/parser.rb
Expand Up @@ -322,6 +322,7 @@ def block_contents(node, context)
end

def block_child(context)
return variable || directive || ruleset if context == :stylesheet
variable || directive || declaration_or_ruleset
end

Expand Down

0 comments on commit 1504416

Please sign in to comment.