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
191 \ i8k_left_fan_status
192 \ i8k_right_fan_status
368 \ audacious_length_seconds
370 \ audacious_position_seconds
372 \ audacious_frequency
375 \ audacious_playlist_length
376 \ audacious_playlist_position
395 \ if_smapi_bat_installed
399 hi def link ConkyrcComment Comment
400 hi def link ConkyrcSetting Keyword
401 hi def link ConkyrcConstant Constant
402 hi def link ConkyrcNumber Number
403 hi def link ConkyrcColour Special
405 hi def link ConkyrcText String
406 hi def link ConkyrcVar Identifier
407 hi def link ConkyrcVarName Keyword
409 let b:current_syntax = "conkyrc"