From 84fbd0558c0c7ada0953ac1847a9e7d717ca591d Mon Sep 17 00:00:00 2001 From: Ansariel Date: Wed, 6 May 2015 10:29:10 +0200 Subject: [PATCH] FIRE-16034: Some symbols confuse the optimizer; patch by Sei Lisa --- indra/newview/fslslpreproc.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/indra/newview/fslslpreproc.cpp b/indra/newview/fslslpreproc.cpp index 798ef06fd4..df2e6692e7 100644 --- a/indra/newview/fslslpreproc.cpp +++ b/indra/newview/fslslpreproc.cpp @@ -118,8 +118,9 @@ using namespace boost::regex_constants; // (using 'r' as namespace prefix for RE, to avoid conflicts) // The code relies on none of these expressions having capturing groups. #define rCMNT "//[^\\n]*+\\n|/\\*(?:(?!\\*/).)*+\\*/" // skip over single- or multi-line comments as a block -#define rREQ_SPC "(?:" rCMNT "|\\s)++" -#define rOPT_SPC "(?:" rCMNT "|\\s)*+" +#define rSPC "[^][{}()<>@A-Za-z0-9_.,:;!~&|^\"=%/*+-]" +#define rREQ_SPC "(?:" rCMNT "|" rSPC ")++" +#define rOPT_SPC "(?:" rCMNT "|" rSPC ")*+" #define rTYPE_ID "[a-z]++" #define rIDENT "[A-Za-z_][A-Za-z0-9_]*+" #define rCMNT_OR_STR rCMNT "|\"(?:[^\"\\\\]|\\\\[^\\n])*+\"" // skip over strings as a block too