jashkenas / jashkenas/coffee-script-tmbundle

Highlight error when regular expression contains hashes

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

Description

It mistakenly treats all hashes as comment hashes. For example:

``` coffee
regex = ///
(/[^?#]*)? # path
///
```

Where the first hash should NOT be considered as a comment hash.

![coffee-bug](https://f.cloud.github.com/assets/731796/1700811/f59ad580-602e-11e3-9c7b-549268dbbfa3.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the highlighting with the CoffeeScript regex example in the issue, then inspect the bundle's syntax-highlighting rule that classifies hashes as comments. Done means the hash inside the regular expression is not highlighted as a comment while the trailing path comment remains highlighted correctly.

Written by the indexing model from the issue text.

Assessment

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.