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

Tolerate no-space around comparison operator #1068

Closed
am11 opened this issue Apr 7, 2015 · 0 comments · Fixed by #1070
Closed

Tolerate no-space around comparison operator #1068

am11 opened this issue Apr 7, 2015 · 0 comments · Fixed by #1070

Comments

@am11
Copy link
Contributor

am11 commented Apr 7, 2015

[Forwarding: https://github.com/sass/node-sass/issues/840]

Tested with latest master: 0135278.

Given the input:

$on: false;
@if $on == false {
 s { a: ss }
}

LibSass generates:

s {
  a: ss; }

If we remove space right after $on:

$on: false;
@if $on== false {
 s { a: ss }
}

The generated output is same.

If we remove space both before and after ==:

$on: false;
@if $on==false {
 s { a: ss }
}

It throws:

error reading values after $on

If we remove space only before false:

$on: false;
@if $on ==false {
 s { a: ss }
}

It throws:

error reading values after

(nothing after after)

@mgreter mgreter added this to the 3.2 milestone Apr 7, 2015
@mgreter mgreter self-assigned this Apr 7, 2015
mgreter added a commit to mgreter/libsass that referenced this issue Apr 7, 2015
They are of course no actual words!
Fixes sass#1068
mgreter added a commit to mgreter/libsass that referenced this issue Apr 7, 2015
They are of course no actual words!
Fixes sass#1068
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants