Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse error with unpadded percentage values #8

Open
rjz opened this issue Feb 7, 2017 · 1 comment
Open

Parse error with unpadded percentage values #8

rjz opened this issue Feb 7, 2017 · 1 comment

Comments

@rjz
Copy link

rjz commented Feb 7, 2017

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)
@data-enabler
Copy link

This isn't just limited to percentage values.

.x {color:#fff;}

also gives the same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants