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

Parsing bug with slashes (/) inside brackets ([]) #154

Open
daraosn opened this issue Aug 13, 2014 · 2 comments
Open

Parsing bug with slashes (/) inside brackets ([]) #154

daraosn opened this issue Aug 13, 2014 · 2 comments

Comments

@daraosn
Copy link

daraosn commented Aug 13, 2014

@array = [1,2,3]
@number1 = 4
@number2 = 2
@array[@number1/@number2]
brokenStyling = true # this line won't be parsed properly

This is a dummy example, but it breaks coffeescript parsing in TextMate 2. It seems to be related to use slashes inside the array's brackets.

TextMate version 2.0-alpha.9551
OSX 10.9.4

@jessbowers
Copy link

This also seems to be the case with parens: ()

@number2 = 2
myfunction(@number1/@number2)
brokenStyling = true # this line won't be parsed properly

@daraosn
Copy link
Author

daraosn commented Oct 28, 2014

It's actually a problem with slashes before at signs:

[@number1,@number2] = [1,2]
@number1/@number2 # breaks
@number1 /@number2 # breaks
@number1 / @number2 # ok

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

No branches or pull requests

2 participants