simonsteele / pn

Programmer's Notepad
373 stars 115 forks source link

Syntax coloring gets upset in Ruby highlighter #146

Open rovf opened 7 years ago

rovf commented 7 years ago

PN 2.4.2:

As you can see in the encolsed screenshot, the syntax highlighter gets out of step when trying to do syntax coloring of the Ruby statement

Set.new(cr.scan /\w+/)

after the "+" sign. I guess it doesn't seem to recognize the end of the regexp, because when I use parenthesis wround the method argument, i.e.

Set.new(cr.scan(/\w+/))

highlighting is done correctly.

capture_20170227_172451