Sync with 5.2.0
[deliverable/titan.core.git] / core / config_process.l
index a1bdde0e32b4f5775435f1e8f903060de8a1489e..4d96260b1aa2990abd05c792e4cf5af9a164cb6b 100644 (file)
@@ -121,7 +121,7 @@ TTCNSTRINGPARSING_COMPONENT "$#&&&(#TTCNSTRINGPARSING_COMPONENT$#&&^#% "
 %x SC_commentblock SC_cstring SC_DEFINE
 %s SC_MODULE_PARAMETERS SC_LOGGING SC_TESTPORT_PARAMETERS SC_EXECUTE SC_GROUPS
 %s SC_COMPONENTS SC_EXTERNAL_COMMANDS SC_MAIN_CONTROLLER SC_INCLUDE SC_ORDERED_INCLUDE
-%s SC_STRING2TTCN_COMPONENT
+%s SC_STRING2TTCN_COMPONENT SC_PROFILER
 
 %%
 
@@ -185,6 +185,13 @@ TTCNSTRINGPARSING_COMPONENT "$#&&&(#TTCNSTRINGPARSING_COMPONENT$#&&^#% "
        }
 }
 
+<*>"["{WS}PROFILER{WS}"]"              {
+  if (YY_START!=SC_commentblock && YY_START!=SC_cstring) {
+       BEGIN(SC_PROFILER);
+       return ProfilerKeyword;
+       }
+}
+
 <*>"["{WS}TESTPORT_PARAMETERS{WS}"]"   {
   if (YY_START!=SC_commentblock && YY_START!=SC_cstring) {
        BEGIN(SC_TESTPORT_PARAMETERS);
@@ -493,7 +500,7 @@ ifpresent   return IfpresentKeyword;
 infinity    return InfinityKeyword;
 }
 
-<SC_MODULE_PARAMETERS,SC_LOGGING>
+<SC_MODULE_PARAMETERS,SC_LOGGING,SC_PROFILER>
 {
 true           {
        yylval.bool_val = TRUE;
@@ -957,6 +964,16 @@ LOG_ALL    {
 [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.02874 seconds and 5 git commands to generate.