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

[Feature request] Regular expressions highlights #246

Open
Kristinita opened this issue May 2, 2017 · 1 comment
Open

[Feature request] Regular expressions highlights #246

Kristinita opened this issue May 2, 2017 · 1 comment

Comments

@Kristinita
Copy link

Possibly related issue

1. Request

It would be nice, if Better CoffeeScript will highlight regular expressions.

2. Justification

Extra syntax highlighting.

3. Settings

For example, part of my Gruntfile.coffee file:

{
  from: /<img alt="([A-Za-z0-9А-Яа-я ]+)" src="(.+?)"\/>/g
  to: '<a class="fancybox" href="$2"><img src="$2" alt="$1"></a>'
}

4. Steps to reproduce

I open Gruntfile.coffee file in Sublime Text in Better CoffeeScript/CoffeeScript.tmLanguage.

5. Actual behavior

All symbols in my regular expression have a scope source.coffee string.regexp.coffee

Actual

6. Expected behavior

For example, I open Gruntfile.js file in default Sublime Text JavaScript syntax:

Expected

Thanks.

@Kristinita Kristinita changed the title [Feature request] Regular expression highlights [Feature request] Regular expressions highlights May 2, 2017
@aponxi
Copy link
Collaborator

aponxi commented May 23, 2017

If anyone would like to send a pull request for this I'll merge it!

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