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

Lexer: Spaces after :: cause unexpected results #1768

Closed
satyr opened this issue Oct 13, 2011 · 2 comments
Closed

Lexer: Spaces after :: cause unexpected results #1768

satyr opened this issue Oct 13, 2011 · 2 comments
Labels

Comments

@satyr
Copy link
Collaborator

satyr commented Oct 13, 2011

$ coffee -bpe 'Array :: isArray'
Array.prototype.isArray;

$ coffee -bpe 'Array :: ["isArray"]'
Error: Parse error on line 1: Unexpected '['
@yuchi
Copy link

yuchi commented Oct 13, 2011

Little precisation:

$ coffee -bpe 'Array::["isArray"]'
Array.prototype["isArray"];

$ coffee -bpe 'Array ::["isArray"]'
Array.prototype["isArray"];

$ coffee -bpe 'Array:: ["isArray"]'
Error: Parse error on line 1: Unexpected '['

The issue is with spaces after ::.

@GeoffreyBooth GeoffreyBooth changed the title Array :: ["isArray"] Lexing: Spaces after :: cause unexpected results May 5, 2017
@GeoffreyBooth GeoffreyBooth changed the title Lexing: Spaces after :: cause unexpected results Lexer: Spaces after :: cause unexpected results May 5, 2017
GeoffreyBooth added a commit to GeoffreyBooth/coffeescript that referenced this issue Aug 30, 2017
@GeoffreyBooth GeoffreyBooth added fixed and removed bug labels Aug 31, 2017
@GeoffreyBooth
Copy link
Collaborator

Fixed by #4670.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants