Sync with 5.2.0
[deliverable/titan.core.git] / mctr2 / cli / config_read.l
index 7d59c229b2d973bc42ed9da2158abe3e441d2074..be8c19348570b7609793f42f1e5d9dc99736f366 100644 (file)
@@ -121,7 +121,7 @@ IPV6 [0-9A-Fa-f:.]+(%[0-9A-Za-z]+)?
 
 %x SC_blockcomment SC_DEFINE SC_CSTRING SC_ORDERED_INCLUDE
 %s SC_MODULE_PARAMETERS SC_LOGGING SC_TESTPORT_PARAMETERS SC_EXECUTE SC_GROUPS
-%s SC_COMPONENTS SC_EXTERNAL_COMMANDS SC_MAIN_CONTROLLER SC_INCLUDE
+%s SC_COMPONENTS SC_EXTERNAL_COMMANDS SC_MAIN_CONTROLLER SC_INCLUDE SC_PROFILER
 
 %%
        int comment_caller = INITIAL;
@@ -158,6 +158,13 @@ IPV6 [0-9A-Fa-f:.]+(%[0-9A-Za-z]+)?
        }
 }
 
+<*>"["{WS}PROFILER{WS}"]"              {
+  if (YY_START!=SC_blockcomment) {
+    BEGIN(SC_PROFILER);
+    RETURN(ProfilerKeyword);
+       }
+}
+
 <*>"["{WS}TESTPORT_PARAMETERS{WS}"]"   {
   if (YY_START!=SC_blockcomment) {
     BEGIN(SC_TESTPORT_PARAMETERS);
@@ -390,7 +397,7 @@ ifpresent   RETURN(IfpresentKeyword);
 infinity    RETURN(InfinityKeyword);
 }
 
-<SC_MODULE_PARAMETERS,SC_LOGGING>
+<SC_MODULE_PARAMETERS,SC_LOGGING,SC_PROFILER>
 {
 true   |
 false  RETURN(BooleanValue);
@@ -551,6 +558,16 @@ WARNING_UNQUALIFIED RETURN(LoggingBit);
 [Dd]elete RETURN(Delete);
 }
 
+<SC_PROFILER>
+{
+[Dd]isable[Pp]rofiler   return DisableProfilerKeyword;
+[Dd]isable[Cc]overage   return DisableCoverageKeyword;
+[Dd]ata[Bb]ase[Ff]ile   return DatabaseFileKeyword;
+[Aa]ggregate[Dd]ata     return AggregateDataKeyword;
+[Ss]tatistics[Ff]ile    return StatisticsFileKeyword;
+[Dd]isable[Ss]tatistics return DisableStatisticsKeyword;
+}
+
 <SC_EXECUTE>control            RETURN(ControlKeyword);
 
 <SC_EXTERNAL_COMMANDS>
This page took 0.030207 seconds and 5 git commands to generate.