auto-detect-indentation icon indicating copy to clipboard operation
auto-detect-indentation copied to clipboard

Ignore indentation in comments

Open sryze opened this issue 9 years ago • 6 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.

sryze avatar Apr 09 '15 11:04 sryze

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.

jtokoph avatar Apr 10 '15 22:04 jtokoph

It's CSS, yeah.

Here's the file: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css

sryze avatar Apr 11 '15 00:04 sryze

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

jtokoph avatar Mar 02 '16 08:03 jtokoph

Nope, still detects as 3 spaces in 0.5.0.

sryze avatar Mar 02 '16 16:03 sryze

Does it show 3 spaces in the status bar?

jtokoph avatar Mar 09 '16 00:03 jtokoph

Yes. I opened a PR that fixes this.

sryze avatar Mar 14 '16 07:03 sryze