SlickEdit Community

General => Community Forum => Topic started by: stvnwst66 on October 01, 2014, 10:20:05 pm

Title: Syntax coloring broken for multi-line regular expressions
Post by: stvnwst66 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.