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

Does not parse SASS single line comments after a block of code #266

Open
varya opened this issue May 24, 2017 · 1 comment
Open

Does not parse SASS single line comments after a block of code #266

varya opened this issue May 24, 2017 · 1 comment

Comments

@varya
Copy link
Contributor

varya commented May 24, 2017

I created a repo to demonstrate the issue https://github.com/varya/sc5-styleguide-1044

Gonzales' node test/single-test.js does not work. So I had to go with the separate repo.

How to get the result:
Clone https://github.com/varya/sc5-styleguide-1044, run npm install and then run node gonzales-test.js

What is happening:
You will see the output which prints one node with this parameters:

  start: { line: 25, column: 1 },
  end: { line: 56, column: 1 } }

This is result of parsing this file https://github.com/varya/sc5-styleguide-1044/blob/master/sass/styles.sass

From the file, you can see that between lines 25 and 56 there are several blocks of code. At least comments from line 55 to 55 should be separate block(s) of code. But Gonzales parses them as they belong to the code block above.

@bgriffith
Copy link
Collaborator

bgriffith commented Aug 29, 2017

Hey @varya - just tried using v4.2.2 and I'm now getting multiple nodes. Could you check to see if the problem still exists? Thanks!

Ignore the above - I see that this matches the issue you report. I'll look into it.

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

No branches or pull requests

2 participants