auto-detect-indentation
auto-detect-indentation copied to clipboard
Ignore indentation in comments
Is it possible to ignore indentation in comments? For example, the following is detected as 3-space indentation (this is from HTML5 Boilerplate):
/* ==========================================================================
Base styles: opinionated defaults
========================================================================== */
but the code actually uses 4 spaces for indentation. It would be nice it comments were completely ignored.
Is this in a .less file? I think there is a combination of issues around less and comments here (#5)
There didn't used to be an atom event for when syntax parsing and highlighting was complete but I can see if that exists now.
It's CSS, yeah.
Here's the file: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css
Can you update to version 0.5.0 and see if you still have this issue? I think I found a solution to re-checking after tokenization
Nope, still detects as 3 spaces in 0.5.0.
Does it show 3 spaces in the status bar?
Yes. I opened a PR that fixes this.