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.