Created
March 22, 2011 01:49
-
-
Save hlb/880615 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/sass/scss/rx.rb b/lib/sass/scss/rx.rb | |
index 82f8367..64dc434 100644 | |
--- a/lib/sass/scss/rx.rb | |
+++ b/lib/sass/scss/rx.rb | |
@@ -49,11 +49,7 @@ module Sass | |
H = /[0-9a-fA-F]/ | |
NL = /\n|\r\n|\r|\f/ | |
UNICODE = /\\#{H}{1,6}[ \t\r\n\f]?/ | |
- s = if Sass::Util.ruby1_8? | |
- '\200-\377' | |
- else | |
- '\u{80}-\u{D7FF}\u{E000}-\u{FFFD}\u{10000}-\u{10FFFF}' | |
- end | |
+ s = "\200-\377" | |
NONASCII = /[#{s}]/ | |
ESCAPE = /#{UNICODE}|\\[ -~#{s}]/ | |
NMSTART = /[_a-zA-Z]|#{NONASCII}|#{ESCAPE}/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* macruby -e "p MACRUBY_REVISION" | |
"svn revision 5279 from http://svn.macosforge.org/repository/ruby/MacRuby/trunk" | |
* git clone https://github.com/nex3/sass.git | |
* patch sass | |
* run irb: | |
require 'lib/sass.rb' | |
engine = Sass::Engine.new("#main {background-color: #0000ff}", :syntax => :scss) | |
engine.render # "#main {\n background-color: #0000ff; }\n" | |
* run macirb | |
require 'lib/sass.rb' | |
engine = Sass::Engine.new("#main {background-color: #0000ff}", :syntax => :scss) | |
engine.render # Sass::SyntaxError: Invalid CSS after "...ckground-color:": expected pseudoclass or pseudoelement, was " #0000ff}" (sass):1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment