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 a selector parsing bug in indented syntax #1005

Merged
merged 4 commits into from
Aug 6, 2020
Merged

Conversation

jathak
Copy link
Member

@jathak jathak commented May 12, 2020

Fixes #1002.

In the indented syntax, a selector list may continue onto another line if the previous line ends with a comma. Previously, if there was a comment after the comma, it wouldn't be recognized and the selector would be broken in two (with the first selector having no properties).

This fixes the parser to ignore comments when looking for the comma at the end of a line.

See sass/sass-spec#1532.

lib/src/parse/sass.dart Outdated Show resolved Hide resolved
jathak added 2 commits August 6, 2020 13:15
Fixes #1002.

In the indented syntax, a selector list may continue onto another line
if the previous line ends with a comma. Previously, if there was a
comment after the comma, it wouldn't be recognized and the selector
would be broken in two (with the first selector having no properties).

This fixes the parser to ignore comments when looking for the comma at
the end of a line.
@jathak jathak force-pushed the comment-parsing-fix branch from 492f9fe to 4961a5d Compare August 6, 2020 20:35
@jathak jathak requested a review from nex3 August 6, 2020 20:39
@nex3
Copy link
Contributor

nex3 commented Aug 6, 2020

Don't forget to add a CHANGELOG entry for this!

@jathak
Copy link
Member Author

jathak commented Aug 6, 2020

Do you know what's going on with Appveyor here?

@nex3
Copy link
Contributor

nex3 commented Aug 6, 2020

Looks like possibly a flake? I'll try restarting it.

@jathak jathak merged commit 9375ada into master Aug 6, 2020
@jathak jathak deleted the comment-parsing-fix branch August 6, 2020 22:43
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.

Wrong parsing of valid SASS syntax
2 participants