"regexp has an invalid spacing" when trying to compile with Sass

I have a very simple file:

h1 {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 2em;
    &.small {
        font-size: 1em;
    }
}

      

Then I have to enter the following command to compile the sass code test.scss

. However, I am getting the following error and no CSS file is generated.

/Library/Ruby/Gems/1.8/gems/sass-3.3.14/bin/../lib/sass/script/lexer.rb:343: warning: regexp has invalid interval

      

Any idea what I might be doing wrong?

+3


source to share


1 answer


The problem was that "}" without escaping regex in / lib / sass / script / lexer.rb see the fix on github you need to update to the latest version of sass (or at least 3.4.1).



+1


source







All Articles