Open Kristinita opened 7 years ago
Possibly related issue
It would be nice, if Better CoffeeScript will highlight regular expressions.
Extra syntax highlighting.
For example, part of my Gruntfile.coffee file:
Gruntfile.coffee
{ from: /<img alt="([A-Za-z0-9А-Яа-я ]+)" src="(.+?)"\/>/g to: '<a class="fancybox" href="$2"><img src="$2" alt="$1"></a>' }
I open Gruntfile.coffee file in Sublime Text in Better CoffeeScript/CoffeeScript.tmLanguage.
Better CoffeeScript/CoffeeScript.tmLanguage
All symbols in my regular expression have a scope source.coffee string.regexp.coffee
source.coffee string.regexp.coffee
For example, I open Gruntfile.js file in default Sublime Text JavaScript syntax:
Gruntfile.js
Thanks.
If anyone would like to send a pull request for this I'll merge it!
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:4. Steps to reproduce
I open
Gruntfile.coffee
file in Sublime Text inBetter CoffeeScript/CoffeeScript.tmLanguage
.5. Actual behavior
All symbols in my regular expression have a scope
source.coffee string.regexp.coffee
6. Expected behavior
For example, I open
Gruntfile.js
file in default Sublime Text JavaScript syntax:Thanks.