Bug in Ruby Syntax Highlighting

If you've found any defects of PilotEdit, post it here.

Bug in Ruby Syntax Highlighting

Postby rovf » Mon Jan 08, 2018 3:55 pm

Consider the following Ruby statement:

Code: Select all
REX = /(?:#{[INT_AND,INT_OR,INT_NOT].smap(:escape,Regexp).join('|')})/

The syntax highlighter colors the part REX = /(?: in one color, and everything else is colored as comment.

It seems that the highlighter incorrectly interprets the '#' as start of a comment.

This is in PilotEdit 11.0.0
Posts: 3
Joined: Tue Nov 21, 2017 1:08 pm

Re: Bug in Ruby Syntax Highlighting

Postby Ray » Thu Apr 05, 2018 8:54 am

I can reproduce it.
But still don't have a fix for it at present.

Posts: 150
Joined: Thu May 19, 2011 2:10 pm

Return to Bug reports

Who is online

Users browsing this forum: No registered users and 1 guest