berfarah / LESS-build-sublime

Less build sytem for Sublime Text 2
Apache License 2.0
91 stars 14 forks source link

Error when trying to build Less file w/ 'unicode-range' #31

Closed bishless closed 11 years ago

bishless commented 11 years ago

Error when trying to build... Cannot apply operator + to the left hand side: U on line 119 in file '_typeplate.less': [118]: src: @amp-fontface-source; [119]: unicode-range: U+0026; ------------------^

[Done - Failed] [Finished in 0.5s with exit code -5]

Here's the offending LESS code: (from Typeplate) // $U N I C O D E - R A N G E A m p e r s a n d // --------------------------------------------------------------------------

@font-face { font-family: "@{amp-fontface-name}"; src: @amp-fontface-source; unicode-range: U+0026; }

// Ampersand fallback font for unicode range @font-face { font-family: "@{amp-fontface-name}"; src: @amp-fontface-fallback; unicode-range: U+270C; }

bishless commented 11 years ago

Sorry... got it fixed by escaping out the values.

  font-family: "@{amp-fontface-name}";
  src: @amp-fontface-source;
  unicode-range: ~"U+0026;"
}

// Ampersand fallback font for unicode range
@font-face {
  font-family: "@{amp-fontface-name}";
  src: @amp-fontface-fallback;
  unicode-range: ~"U+270C;"
}