Syntax color for Javascript Regex fails

I can't figure out why my regex goes blue with a gray background in the code below, given the color setting that can be seen below it?
I'm using RubyMine 3.0.

Would anyone know how to fix this?

http://www.users.on.net/~spurry/images/rubymine_jsregexblue.png

0
8 comments

Further to this, I since discovered the RegExp syntax color options in settings:

But it still manages to color some of my Regex this dark blue color - which I can't find anywhere

NB the regex is supposed to read "/\{.*?,.*?\}/g" but you can't read the \}
http://www.users.on.net/~spurry/images/js_regex_color_issue.png
Here's my settings for RegExp (and my settings for General|Inject language fragment is the light-green on dark-green color)
http://www.users.on.net/~spurry/images/js_regex_color_settings.png

0

Hello Panda,

In RubyMine 3.0, a number of colors used for regexp highlighting are missing
from the settings page. All of the colors will be configurable in RubyMine
3.1.

Further to this, I since discovered the RegExp syntax color options in
settings:

But it still manages to color this dark blue color which I can't
find anywhere
Image:http://www.users.on.net/~spurry/images/js_regex_color_issue.png
Here's my settings for RegExp (and my settings for General|Inject
language fragment is the light-green on dark-green color)
Image:http://www.users.on.net/~spurry/images/js_regex_color_settings.
png

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Avatar
Permanently deleted user

Hello.
This bug is related not only to javascript regexp.
снимок 267.pngснимок 268.pngснимок 269.png
Also, current version is 3.2.3 and it does not seem to be fixed here.

UPD.
There is also problems with ERB templates, namely with injected javascript (gray background):
снимок 270.png
Can't understand from where it came from, but it appears only if js string contains html.

0

Background for injected languages can be configured in Settings | Editor | Color & Fonts | General | Injected language fragment

0
Avatar
Permanently deleted user

Wow, It even helped with regular expressions, they doesn't have this gray background, thank you!
It's just a bit broken now:
снимок 272.png
Can't make it using single color.

0

Set gray foreground in Colors & Fonts | RegExp | Keyword, Colors & Fonts | RegExp | Keyword, .. | Escaped character and ...|Redundant escape sequence

0
Avatar
Permanently deleted user

Yes, correct, but quite the contrary I tried to remove gray color :) It seems that this options
is missed in Colors & Fonts → RegExp, because to colorize entire regexp in violet I should
set global text color in Colors & Fonts → General → Default text to violet, but this is not good
because it affects on all simple text.

Thus it should be an option to colorize all other parts in regexp, what is not possible for now:
снимок 272.png

0

Ok, indeed it isn't customizable. Please file a bug request at http://youtrack.jetbrains.net/issues/ruby

0

Please sign in to leave a comment.