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

Ignore indentation in comments #7

Open
sryze opened this issue Apr 9, 2015 · 6 comments
Open

Ignore indentation in comments #7

sryze opened this issue Apr 9, 2015 · 6 comments

Comments

@sryze
Copy link

sryze commented Apr 9, 2015

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.

@jtokoph
Copy link
Owner

jtokoph commented Apr 10, 2015

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.

@sryze
Copy link
Author

sryze commented Apr 11, 2015

It's CSS, yeah.

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

@jtokoph
Copy link
Owner

jtokoph commented Mar 2, 2016

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

@sryze
Copy link
Author

sryze commented Mar 2, 2016

Nope, still detects as 3 spaces in 0.5.0.

@jtokoph
Copy link
Owner

jtokoph commented Mar 9, 2016

Does it show 3 spaces in the status bar?

@sryze
Copy link
Author

sryze commented Mar 14, 2016

Yes. I opened a PR that fixes this.

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

Successfully merging a pull request may close this issue.

2 participants