Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Multiline Division Syntax Highlighting #227

Open
markpalantoni opened this issue Jan 13, 2018 · 0 comments
Open

Multiline Division Syntax Highlighting #227

markpalantoni opened this issue Jan 13, 2018 · 0 comments

Comments

@markpalantoni
Copy link

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:

a = 2 /
    2

Expected behavior:
It syntax highlights as arithmetic like when using multiplication symbol spanning multiple lines.
screen shot 2018-01-12 at 10 38 44 pm

Actual behavior: [What actually happens]
screen shot 2018-01-12 at 10 31 50 pm

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant