csscomb / csscomb.js

CSS coding style formatter
http://csscomb.com/
MIT License
3.29k stars 458 forks source link

Unable to parse 'csscomb.json' #329

Open spinningarrow opened 9 years ago

spinningarrow commented 9 years ago

I wanted to indent my SCSS files using tabs instead of spaces. I changed block-indent to a single tab character, but now when I run csscomb (using grunt) I get a warning: "Unable to parse "csscomb.json" file (Unexpected token ). Use --force to continue."

Any idea why? The csscomb config file is indented using four spaces, though I don't think this should make a difference.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

spinningarrow commented 9 years ago

It appears that tabs are not allowed in strings in JSON. It works if I use \t instead of the tab character. Perhaps the docs should be updated (currently it says "string with whitespaces and tabs").