Vim syntax: Match groups before host/service/user objects

switches order of syntax object definitions to stop short circuit

fixes #9045

Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
This commit is contained in:
Andrew Meyer 2015-04-10 13:40:22 -05:00 committed by Michael Friedrich
parent 3d4be0ea58
commit ec8ec726c0
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Alexander Schomburg <script.acc@alex.schomb.org> Alexander Schomburg <script.acc@alex.schomb.org>
Alexander Wirt <formorer@debian.org> Alexander Wirt <formorer@debian.org>
Andrew Meyer <ameyer+secure@nodnetwork.org>
Bernd Erk <bernd.erk@icinga.org> Bernd Erk <bernd.erk@icinga.org>
Blerim Sheqa <blerim.sheqa@netways.de> Blerim Sheqa <blerim.sheqa@netways.de>
Brian Dockter <specus@gmail.com> Brian Dockter <specus@gmail.com>

View File

@ -45,7 +45,7 @@ syn match Parens "[()]"
" objects types " objects types
syn match icinga2ObjDef "object[ \t]\+\(hostgroup\|host\|service\|servicegroup\|user\|usergroup\)" syn match icinga2ObjDef "object[ \t]\+\(hostgroup\|host\|servicegroup\|service\|usergroup\|user\)"
syn match icinga2ObjDef "object[ \t]\+\(checkcommand\|notificationcommand\|eventcommand\|notification\)" syn match icinga2ObjDef "object[ \t]\+\(checkcommand\|notificationcommand\|eventcommand\|notification\)"
syn match icinga2Objdef "object[ \t]\+\(timeperiod\|scheduleddowntime\|dependency\|perfdatawriter\)" syn match icinga2Objdef "object[ \t]\+\(timeperiod\|scheduleddowntime\|dependency\|perfdatawriter\)"
syn match icinga2ObjDef "object[ \t]\+\(graphitewriter\|idomysqlconnection\|idomysqlconnection\)" syn match icinga2ObjDef "object[ \t]\+\(graphitewriter\|idomysqlconnection\|idomysqlconnection\)"