You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
When writing code in ruby that includes an empty regex expression (ex: //) or that includes only an escaped character (ex: /\D/), it throws off the colors of the syntax highlighter on the line and often on the rest of the file too.
Steps to Reproduce
Create new file
Select Ruby grammar for the file
Type the following line of code character by character: "test 123".match(/\D/)
Expected behavior:
Expectation is for colors to remain correct instead of blanking out. Ex: green for string, blue for method, purple for regex delimiters (forward slashes), light blue for escaped characters within regex.
Actual behavior:
Note colors look ok as you type, but colors go away as soon as you close the regex expression (second forward slash) and whole line remains in plain white color. There are some variations to this but this is the simplest example I can describe that consistently borks like this.
Description
When writing code in ruby that includes an empty regex expression (ex: //) or that includes only an escaped character (ex: /\D/), it throws off the colors of the syntax highlighter on the line and often on the rest of the file too.
Steps to Reproduce
Expected behavior:
Expectation is for colors to remain correct instead of blanking out. Ex: green for string, blue for method, purple for regex delimiters (forward slashes), light blue for escaped characters within regex.
Actual behavior:
Note colors look ok as you type, but colors go away as soon as you close the regex expression (second forward slash) and whole line remains in plain white color. There are some variations to this but this is the simplest example I can describe that consistently borks like this.
Reproduces how often:
All the time.
Versions
macOS 11.2.3
Atom : 1.55.0
Electron: 6.1.12
Chrome : 76.0.3809.146
Node : 12.4.0
apm 2.5.2
npm 6.14.8
node 12.4.0 x64
atom 1.55.0
python 2.7.16
git 2.30.1
The text was updated successfully, but these errors were encountered: