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
74 \ own_window_transparent
98 \ max_port_monitor_connections
100 syn keyword ConkyrcConstant
123 syn match ConkyrcNumber /\S\@<!\d\+\(\.\d\+\)\?\(\S\@!\|}\@=\)/
124 \ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
125 syn match ConkyrcColour /\S\@<!#[a-fA-F0-9]\{6\}\(\S\@!\|}\@=\)/
126 \ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
128 syn region ConkyrcText start=/^TEXT$/ end=/\%$/ contains=ConkyrcVar
130 syn region ConkyrcVar start=/\${/ end=/}/ contained contains=ConkyrcVarStuff
131 syn region ConkyrcVar start=/\$\w\@=/ end=/\W\@=\|$/ contained contains=ConkyrcVarName
133 syn match ConkyrcVarStuff /{\@<=/ms=s contained nextgroup=ConkyrcVarName
135 syn keyword ConkyrcVarName contained nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
147 \ wireless_link_qual_max
148 \ wireless_link_qual_perc
186 \ i8k_left_fan_status
187 \ i8k_right_fan_status
362 \ audacious_length_seconds
364 \ audacious_position_seconds
366 \ audacious_frequency
369 \ audacious_playlist_length
370 \ audacious_playlist_position
389 \ if_smapi_bat_installed
393 hi def link ConkyrcComment Comment
394 hi def link ConkyrcSetting Keyword
395 hi def link ConkyrcConstant Constant
396 hi def link ConkyrcNumber Number
397 hi def link ConkyrcColour Special
399 hi def link ConkyrcText String
400 hi def link ConkyrcVar Identifier
401 hi def link ConkyrcVarName Keyword
403 let b:current_syntax = "conkyrc"