Gentoo Archives: gentoo-commits

From: "Christian Ruppert (idl0r)" <idl0r@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-syntax r85 - trunk/gentoo-syntax/syntax
Date: Wed, 04 Jan 2012 16:57:51
Message-Id: 20120104165734.6D7382004B@flycatcher.gentoo.org
1 Author: idl0r
2 Date: 2012-01-04 16:57:33 +0000 (Wed, 04 Jan 2012)
3 New Revision: 85
4
5 Modified:
6 trunk/gentoo-syntax/syntax/gentoo-init-d.vim
7 Log:
8 More init.d highlighting
9
10
11 Modified: trunk/gentoo-syntax/syntax/gentoo-init-d.vim
12 ===================================================================
13 --- trunk/gentoo-syntax/syntax/gentoo-init-d.vim 2012-01-04 16:42:27 UTC (rev 84)
14 +++ trunk/gentoo-syntax/syntax/gentoo-init-d.vim 2012-01-04 16:57:33 UTC (rev 85)
15 @@ -8,6 +8,9 @@
16 " and adds in Gentoo-specific highlights for certain keywords and functions.
17 " Requires vim 6.3 or later.
18 "
19 +" TODO: Add highlights for description_$command
20 +" Add start-stop-daemon highlighting incl. deprecated options
21 +"
22
23 if &compatible || v:version < 603
24 finish
25 @@ -37,6 +40,9 @@
26 syn keyword GentooInitDKeyword mark_service_stopped mark_service_coldplugged
27 syn keyword GentooInitDKeyword mark_service_wasinactive checkpath yesno
28
29 +syn keyword GentooInitSpecialVariables extra_commands extra_started_commands extra_stopped_commands description command command_args pidfile name
30 +syn keyword GentooInitDeprecated opts
31 +
32 syn keyword GentooInitDFunc describe start_pre start start_post stop_pre stop stop_post
33 syn keyword GentooInitDFunc reload restart status zap depend
34
35 @@ -44,6 +50,8 @@
36
37 hi def link GentooInitDKeyword Keyword
38 hi def link GentooInitDFunc Special
39 +hi def link GentooInitSpecialVariables PreProc
40 +hi def link GentooInitDeprecated Error
41
42 let b:current_syntax = "gentoo-init-d"