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
9 if exists("b:current_syntax")
13 syn region ConkyrcComment start=/^\s*#/ end=/$/
15 syn keyword ConkyrcSetting
39 \ default_outline_color
40 \ default_outlinecolor
46 \ music_player_interval
51 \ override_utf8_locale
79 \ own_window_transparent
103 \ max_port_monitor_connections
105 syn keyword ConkyrcConstant
128 syn match ConkyrcNumber /\S\@<!\d\+\(\.\d\+\)\?\(\S\@!\|}\@=\)/
129 \ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
130 syn match ConkyrcColour /\S\@<!#[a-fA-F0-9]\{6\}\(\S\@!\|}\@=\)/
131 \ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
133 syn region ConkyrcText start=/^TEXT$/ end=/\%$/ contains=ConkyrcVar
135 syn region ConkyrcVar start=/\${/ end=/}/ contained contains=ConkyrcVarStuff
136 syn region ConkyrcVar start=/\$\w\@=/ end=/\W\@=\|$/ contained contains=ConkyrcVarName
138 syn match ConkyrcVarStuff /{\@<=/ms=s contained nextgroup=ConkyrcVarName
140 syn keyword ConkyrcVarName contained nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
152 \ wireless_link_qual_max
153 \ wireless_link_qual_perc
192 \ i8k_left_fan_status
193 \ i8k_right_fan_status
369 \ audacious_length_seconds
371 \ audacious_position_seconds
373 \ audacious_frequency
376 \ audacious_playlist_length
377 \ audacious_playlist_position
396 \ if_smapi_bat_installed
400 hi def link ConkyrcComment Comment
401 hi def link ConkyrcSetting Keyword
402 hi def link ConkyrcConstant Constant
403 hi def link ConkyrcNumber Number
404 hi def link ConkyrcColour Special
406 hi def link ConkyrcText String
407 hi def link ConkyrcVar Identifier
408 hi def link ConkyrcVarName Keyword
410 let b:current_syntax = "conkyrc"