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

[RFC] Change file fallback from scss to sass syntax #1341

Closed
wants to merge 1 commit into from

Conversation

mgreter
Copy link
Contributor

@mgreter mgreter commented Jul 14, 2015

This is in response to #1219.

Ruby sass seems to use indented syntax for all file types except scss. libsass currently does the opposite and recognises sass file as beeing indented syntax. This PR changes this behavior. It seems to be more inline with ruby sass, but I don't know the implications of this change. I also think we may need to change the force indented syntax flag in this case to force scss syntax.

So this is open for feedback and discussion!

@mgreter mgreter changed the title [RFC] Change default from scss to sass syntax [RFC] Change file fallback from scss to sass syntax Jul 14, 2015
@mgreter mgreter force-pushed the change/default-scss-to-sass branch from 266046b to 2097c3a Compare July 14, 2015 03:28
@xzyfer
Copy link
Contributor

xzyfer commented Jul 14, 2015

I'd like to hear @chriseppstein thoughts on this.

@saper
Copy link
Member

saper commented Jul 14, 2015

Maybe we should not rely on extension at all

@drewwells
Copy link
Contributor

💯

The code won't help, but here's what I do in wellington. It reads the the input stream looking for non-sass tokens ; {, etc, then convert https://github.com/wellington/wellington/blob/master/import.go#L47-L81

The extension matcher wasn't sufficient to handle stdin or http streams.

@mgreter mgreter force-pushed the change/default-scss-to-sass branch from 2097c3a to 1431194 Compare July 16, 2015 01:21
@mgreter
Copy link
Contributor Author

mgreter commented Jul 26, 2015

Ruby sass relies on the extension, so we probably should keep it that way. I agree there are smarter solutions, but so far we always follow the ruby sass way. So in that sense this change would be legit!

@mgreter mgreter force-pushed the change/default-scss-to-sass branch from 1431194 to eefc77a Compare July 26, 2015 15:34
@xzyfer xzyfer added this to the 3.3 milestone Jul 27, 2015
@mgreter mgreter removed their assignment Jul 27, 2015
@mgreter mgreter closed this Jul 28, 2015
@mgreter mgreter deleted the change/default-scss-to-sass branch July 28, 2015 10:10
@mgreter mgreter restored the change/default-scss-to-sass branch January 22, 2016 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants