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
35 \ default_outline_color
36 \ default_outlinecolor
42 \ music_player_interval
47 \ override_utf8_locale
71 \ own_window_transparent
85 \ max_port_monitor_connections
87 syn keyword ConkyrcConstant
109 syn match ConkyrcNumber /\S\@<!\d\+\(\.\d\+\)\?\(\S\@!\|}\@=\)/
110 \ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
111 syn match ConkyrcColour /\S\@<!#[a-fA-F0-9]\{6\}\(\S\@!\|}\@=\)/
112 \ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
114 syn region ConkyrcText start=/^TEXT$/ end=/\%$/ contains=ConkyrcVar
116 syn region ConkyrcVar start=/\${/ end=/}/ contained contains=ConkyrcVarStuff
117 syn region ConkyrcVar start=/\$\w\@=/ end=/\W\@=\|$/ contained contains=ConkyrcVarName
119 syn match ConkyrcVarStuff /{\@<=/ms=s contained nextgroup=ConkyrcVarName
121 syn keyword ConkyrcVarName contained nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
133 \ wireless_link_qual_max
134 \ wireless_link_qual_perc
172 \ i8k_left_fan_status
173 \ i8k_right_fan_status
338 \ audacious_length_seconds
340 \ audacious_position_seconds
342 \ audacious_frequency
345 \ audacious_playlist_length
346 \ audacious_playlist_position
365 \ if_smapi_bat_installed
369 hi def link ConkyrcComment Comment
370 hi def link ConkyrcSetting Keyword
371 hi def link ConkyrcConstant Constant
372 hi def link ConkyrcNumber Number
373 hi def link ConkyrcColour Special
375 hi def link ConkyrcText String
376 hi def link ConkyrcVar Identifier
377 hi def link ConkyrcVarName Keyword
379 let b:current_syntax = "conkyrc"