Skip to content

Instantly share code, notes, and snippets.

@wbotelhos
Last active December 8, 2017 13:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wbotelhos/9bb0b3b96293d97d367951a192526680 to your computer and use it in GitHub Desktop.
Save wbotelhos/9bb0b3b96293d97d367951a192526680 to your computer and use it in GitHub Desktop.
SASS Parser Debug

Open the gem:

gem open sass

Add the following code at lib/sass/scss/parser.rb:1277:

puts '-' * 50
puts "expected: #{expected}"
puts "line: #{line}"
puts "scanner pos: #{scanner.string}"
puts %(message: Invalid CSS after "#{after}": expected #{expected}, was "#{was}")
puts '-' * 50
@eduardojmatos
Copy link

👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment