Skip to content

[Feature request] Regular expressions highlights #246

@Kristinita

Description

@Kristinita

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions