jashkenas / jashkenas/coffee-script-tmbundle

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

Open
#154 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
826
Forks
232
PR merge metrics
No merged PRs in 30d

Description

``` coffee
@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

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the supplied CoffeeScript snippet in TextMate 2 using the reported version and confirm how the line after the array expression is styled or parsed. Trace the bundle's CoffeeScript grammar entry point to isolate slash handling inside brackets; done means the example parses correctly and the following line is styled normally.

Written by the indexing model from the issue text.

Assessment

Tech stack
coffeescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.