Menu

#242 Bug in Ruby Syntax Highlight

2.3.2
New
nobody
None
Medium
Windows 7
Task
2017-05-09
2017-05-09
Ronald
No

In the following code line,

  ecuregexp = ARGV[1].nil? ? /.*/ : Regexp.new(ARGV[1])

the Ruby highlighter does not recognized the first slash (/) as the start of a regexp, and highlights the statement as if the second slash would start the regular expression.

Discussion