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
39 \ min_port_monitor_connections
47 \ override_utf8_locale
51 \ own_window_transparent
65 syn keyword ConkyrcConstant
83 syn match ConkyrcNumber /\S\@<!\d\+\(\.\d\+\)\?\(\S\@!\|}\@=\)/
84 \ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
85 syn match ConkyrcColour /\S\@<!#[a-fA-F0-9]\{6\}\(\S\@!\|}\@=\)/
86 \ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
88 syn region ConkyrcText start=/^TEXT$/ end=/\%$/ contains=ConkyrcVar
90 syn region ConkyrcVar start=/\${/ end=/}/ contained contains=ConkyrcVarStuff
91 syn region ConkyrcVar start=/\$\w\@=/ end=/\W\@=\|$/ contained contains=ConkyrcVarName
93 syn match ConkyrcVarStuff /{\@<=/ms=s contained nextgroup=ConkyrcVarName
95 syn keyword ConkyrcVarName contained nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
112 \ audacious_frequency
114 \ audacious_length_seconds
115 \ audacious_playlist_length
116 \ audacious_playlist_position
118 \ audacious_position_seconds
168 \ i8k_left_fan_status
170 \ i8k_right_fan_status
232 hi def link ConkyrcComment Comment
233 hi def link ConkyrcSetting Keyword
234 hi def link ConkyrcConstant Constant
235 hi def link ConkyrcNumber Number
236 hi def link ConkyrcColour Special
238 hi def link ConkyrcText String
239 hi def link ConkyrcVar Identifier
240 hi def link ConkyrcVarName Keyword
242 let b:current_syntax = "conkyrc"