gonzales-pe icon indicating copy to clipboard operation
gonzales-pe copied to clipboard

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

Open varya opened this issue 7 years ago • 1 comments

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.

varya avatar May 24 '17 12:05 varya

~~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.

bgriffith avatar Aug 29 '17 23:08 bgriffith