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
36 \ default_outline_color
37 \ default_outlinecolor
43 \ music_player_interval
48 \ override_utf8_locale
76 \ own_window_transparent
100 \ max_port_monitor_connections
102 syn keyword ConkyrcConstant
125 syn match ConkyrcNumber /\S\@<!\d\+\(\.\d\+\)\?\(\S\@!\|}\@=\)/
126 \ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
127 syn match ConkyrcColour /\S\@<!#[a-fA-F0-9]\{6\}\(\S\@!\|}\@=\)/
128 \ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
130 syn region ConkyrcText start=/^TEXT$/ end=/\%$/ contains=ConkyrcVar
132 syn region ConkyrcVar start=/\${/ end=/}/ contained contains=ConkyrcVarStuff
133 syn region ConkyrcVar start=/\$\w\@=/ end=/\W\@=\|$/ contained contains=ConkyrcVarName
135 syn match ConkyrcVarStuff /{\@<=/ms=s contained nextgroup=ConkyrcVarName
137 syn keyword ConkyrcVarName contained nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
149 \ wireless_link_qual_max
150 \ wireless_link_qual_perc
188 \ i8k_left_fan_status
189 \ i8k_right_fan_status
365 \ audacious_length_seconds
367 \ audacious_position_seconds
369 \ audacious_frequency
372 \ audacious_playlist_length
373 \ audacious_playlist_position
392 \ if_smapi_bat_installed
396 hi def link ConkyrcComment Comment
397 hi def link ConkyrcSetting Keyword
398 hi def link ConkyrcConstant Constant
399 hi def link ConkyrcNumber Number
400 hi def link ConkyrcColour Special
402 hi def link ConkyrcText String
403 hi def link ConkyrcVar Identifier
404 hi def link ConkyrcVarName Keyword
406 let b:current_syntax = "conkyrc"