Author Topic: Syntax coloring broken for multi-line regular expressions  (Read 2325 times)

stvnwst66

  • New Community Member
  • Posts: 1
  • Hero Points: 0
Syntax coloring broken for multi-line regular expressions
« on: October 01, 2014, 10:20:05 pm »
I am running SlickEdit 2013 (v18.0.0.13 64-bit). I have some existing Perl projects that make use of the //x regular expression modifier, which allows the regular expression to contain white space (including new lines). SlickEdit doesn't color these correctly, causing subsequent content in the file to be colored as though it is a string. Try this example in a .pl file:

if (/\"hello\",
     \"there\"/x) {

    print "some message"
}


If the two lines are put on the same line (dropping the //x modifier) the coloring becomes correct.