SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => 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.