scss-parser
scss-parser copied to clipboard
Parse error with unpadded percentage values
scss-parser
throws an error when a percent-value is not padded with a leading space.
Input SCSS:
.x { width:100%; }
Error:
Error: Expecting punctuation: "}" (1:18)
at InputStream.err (lib/input-stream.js:99:11)
at Object.err (lib/input-stream.js:133:16)
at TokenStream.err (lib/token-stream.js:246:23)
at Object.err (lib/token-stream.js:534:16)
at Parser.skip_type (lib/parse.js:147:19)
at Parser.skip_punctuation (lib/parse.js:159:17)
at Parser.parse_block (lib/parse.js:450:25)
at Parser.parse_rule (lib/parse.js:563:22)
at Parser.parse_node (lib/parse.js:286:49)
at Parser.parse_stylesheet (lib/parse.js:200:23)
at module.exports (lib/parse.js:614:17)
This isn't just limited to percentage values.
.x {color:#fff;}
also gives the same error.