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 the forward slash is used as dividing operator and the expression spans multiple lines, the rest of the statement becomes highlighted as a regular expression. Adding another forward slash stops the incorrect highlighting. Seems like there is a problem with interpreting multiline division statements as regular expressions.
Steps to Reproduce
open new file with Ruby syntax highlighting and type:
a = 2 /
2
Expected behavior:
It syntax highlights as arithmetic like when using multiplication symbol spanning multiple lines.
Description
When the forward slash is used as dividing operator and the expression spans multiple lines, the rest of the statement becomes highlighted as a regular expression. Adding another forward slash stops the incorrect highlighting. Seems like there is a problem with interpreting multiline division statements as regular expressions.
Steps to Reproduce
open new file with Ruby syntax highlighting and type:
Expected behavior:
It syntax highlights as arithmetic like when using multiplication symbol spanning multiple lines.
Actual behavior: [What actually happens]
Reproduces how often:
100%
Versions
language-ruby 0.71.4
Atom : 1.23.2
Electron: 1.6.15
Chrome : 56.0.2924.87
Node : 7.4.0
OSX 10.10.5
The text was updated successfully, but these errors were encountered: