From: Michael Orlitzky Date: Sun, 18 Apr 2010 01:53:08 +0000 (-0400) Subject: Changed the object definition regex to use the output of parse_object_definitions. X-Git-Tag: v0.1~2 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=839ef437f49a2c72f547d9e345b6403a693e7279;p=nagios-mode.git Changed the object definition regex to use the output of parse_object_definitions. --- diff --git a/nagios-mode.el b/nagios-mode.el index 722450e..ecf5aff 100644 --- a/nagios-mode.el +++ b/nagios-mode.el @@ -664,10 +664,22 @@ (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.