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

fix: node end offset location #147

Merged
merged 3 commits into from
Sep 8, 2023
Merged

fix: node end offset location #147

merged 3 commits into from
Sep 8, 2023

Conversation

idoros
Copy link
Contributor

@idoros idoros commented Sep 8, 2023

This PR fixes the offset of specific sass ast nodes mentioned in this issue.

I had to upgrade the dev dependencies of both postcss and postcss-parser-tests to make this work. And also set the minimal postcss version from "^8.4.19" to "^8.4.29".

Upgrading the post-parser-tests also required a small change in the test that used it since it changed jsonify from returning string to object.

The actual fix changed the offset in 3 places, but I only added tests for 2 cases, since I couldn't figure out what syntax can result in the parser reaching the 3rd offset.

@ai ai merged commit 5105e42 into postcss:main Sep 8, 2023
5 checks passed
@idoros idoros deleted the ido/fix-offset branch September 8, 2023 11:24
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 this pull request may close these issues.

2 participants