]> gitweb.michael.orlitzky.com - nagios-mode.git/commitdiff
Changed the object definition regex to use the output of parse_object_definitions.
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 18 Apr 2010 01:53:08 +0000 (21:53 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 18 Apr 2010 01:53:08 +0000 (21:53 -0400)
nagios-mode.el

index 722450edfd87130ce9d06762df9d8fdd568c7cc4..ecf5affff360f5d05338717e50c120d548799427 100644 (file)
     (concat "^[ \t\r\n]*"
 
     (regexp-alt-raw
-     '("define +\\(host\\|service\\|timeperiod\\|contact\\|command\\)"
-       "define +\\(host\\|contact\\|service\\)group"
-       "define +\\(service\\|host\\)dependency"
-       "define +\\(service\\|host\\|hostgroup\\)escalation"))
+     '("define command"
+       "define contact"
+       "define contactgroup"
+       "define host"
+       "define hostdependency"
+       "define hostescalation"
+       "define hostextinfo"
+       "define hostgroup"
+       "define hostgroupescalation"
+       "define null"
+       "define service"
+       "define servicedependency"
+       "define serviceescalation"
+       "define serviceextinfo"
+       "define servicegroup"
+       "define timeperiod"))
 
     ;; These can be "terminated" by either an opening curly
     ;; brace, or a space.