Skip to content

fix #244#245

Closed
vendethiel wants to merge 1 commit into
gkz:masterfrom
vendethiel:postif-scomp
Closed

fix #244#245
vendethiel wants to merge 1 commit into
gkz:masterfrom
vendethiel:postif-scomp

Conversation

@vendethiel

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/lexer.ls

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how I should detect this case : [.. for [0 1 2]] ?
Without this check, things such as

for k, copy[k] of [4, 2] then continue; eq copy.0 * copy.1, 8 fails. (unexpected relation)

Comment thread src/lexer.ls

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even after satyr/coco@c7c745b I think this needs to be pulled in. ie [.. for a when a in c]

@vendethiel vendethiel reopened this Jan 12, 2013
@vendethiel

Copy link
Copy Markdown
Contributor Author

This is actually not fixed at all for LiveScript, and it'll be thougher to fix than the other.
The fix from coco was only for post-for, for in comprehensions are failing the same
[..a for c]; a in b still fails. ([..a for c when 1]; a in b due to e4589e6)

@vendethiel

Copy link
Copy Markdown
Contributor Author

Related : satyr/coco@0fd717f

@vendethiel vendethiel closed this Jul 19, 2013
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.

1 participant