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
36 \ default_outline_color
37 \ default_outlinecolor
43 \ music_player_interval
48 \ override_utf8_locale
72 \ own_window_transparent
86 \ max_port_monitor_connections
88 syn keyword ConkyrcConstant
110 syn match ConkyrcNumber /\S\@<!\d\+\(\.\d\+\)\?\(\S\@!\|}\@=\)/
111 \ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
112 syn match ConkyrcColour /\S\@<!#[a-fA-F0-9]\{6\}\(\S\@!\|}\@=\)/
113 \ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
115 syn region ConkyrcText start=/^TEXT$/ end=/\%$/ contains=ConkyrcVar
117 syn region ConkyrcVar start=/\${/ end=/}/ contained contains=ConkyrcVarStuff
118 syn region ConkyrcVar start=/\$\w\@=/ end=/\W\@=\|$/ contained contains=ConkyrcVarName
120 syn match ConkyrcVarStuff /{\@<=/ms=s contained nextgroup=ConkyrcVarName
122 syn keyword ConkyrcVarName contained nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
134 \ wireless_link_qual_max
135 \ wireless_link_qual_perc
173 \ i8k_left_fan_status
174 \ i8k_right_fan_status
332 \ audacious_length_seconds
334 \ audacious_position_seconds
336 \ audacious_frequency
339 \ audacious_playlist_length
340 \ audacious_playlist_position
359 \ if_smapi_bat_installed
363 hi def link ConkyrcComment Comment
364 hi def link ConkyrcSetting Keyword
365 hi def link ConkyrcConstant Constant
366 hi def link ConkyrcNumber Number
367 hi def link ConkyrcColour Special
369 hi def link ConkyrcText String
370 hi def link ConkyrcVar Identifier
371 hi def link ConkyrcVarName Keyword
373 let b:current_syntax = "conkyrc"