3 " Author: Ciaran McCreesh <ciaranm@gentoo.org>
5 " Copyright: Copyright (c) 2005 Ciaran McCreesh
6 " Licence: You may redistribute this under the same terms as Vim itself
10 if exists("b:current_syntax")
14 syn region ConkyrcComment start=/^\s*#/ end=/$/
16 syn keyword ConkyrcSetting
23 \ default_outline_color
37 \ min_port_monitor_connections
45 \ override_utf8_locale
49 \ own_window_transparent
62 syn keyword ConkyrcConstant
80 syn match ConkyrcNumber /\S\@<!\d\+\(\.\d\+\)\?\(\S\@!\|}\@=\)/
81 \ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
82 syn match ConkyrcColour /\S\@<!#[a-fA-F0-9]\{6\}\(\S\@!\|}\@=\)/
83 \ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
85 syn region ConkyrcText start=/^TEXT$/ end=/\%$/ contains=ConkyrcVar
87 syn region ConkyrcVar start=/\${/ end=/}/ contained contains=ConkyrcVarStuff
88 syn region ConkyrcVar start=/\$\w\@=/ end=/\W\@=\|$/ contained contains=ConkyrcVarName
90 syn match ConkyrcVarStuff /{\@<=/ms=s contained nextgroup=ConkyrcVarName
92 syn keyword ConkyrcVarName contained nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
109 \ audacious_frequency
111 \ audacious_length_seconds
112 \ audacious_playlist_length
113 \ audacious_playlist_position
115 \ audacious_position_seconds
162 \ i8k_left_fan_status
164 \ i8k_right_fan_status
223 hi def link ConkyrcComment Comment
224 hi def link ConkyrcSetting Keyword
225 hi def link ConkyrcConstant Constant
226 hi def link ConkyrcNumber Number
227 hi def link ConkyrcColour Special
229 hi def link ConkyrcText String
230 hi def link ConkyrcVar Identifier
231 hi def link ConkyrcVarName Keyword
233 let b:current_syntax = "conkyrc"