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
95 \ max_port_monitor_connections
97 syn keyword ConkyrcConstant
120 syn match ConkyrcNumber /\S\@<!\d\+\(\.\d\+\)\?\(\S\@!\|}\@=\)/
121 \ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
122 syn match ConkyrcColour /\S\@<!#[a-fA-F0-9]\{6\}\(\S\@!\|}\@=\)/
123 \ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
125 syn region ConkyrcText start=/^TEXT$/ end=/\%$/ contains=ConkyrcVar
127 syn region ConkyrcVar start=/\${/ end=/}/ contained contains=ConkyrcVarStuff
128 syn region ConkyrcVar start=/\$\w\@=/ end=/\W\@=\|$/ contained contains=ConkyrcVarName
130 syn match ConkyrcVarStuff /{\@<=/ms=s contained nextgroup=ConkyrcVarName
132 syn keyword ConkyrcVarName contained nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
144 \ wireless_link_qual_max
145 \ wireless_link_qual_perc
183 \ i8k_left_fan_status
184 \ i8k_right_fan_status
359 \ audacious_length_seconds
361 \ audacious_position_seconds
363 \ audacious_frequency
366 \ audacious_playlist_length
367 \ audacious_playlist_position
386 \ if_smapi_bat_installed
390 hi def link ConkyrcComment Comment
391 hi def link ConkyrcSetting Keyword
392 hi def link ConkyrcConstant Constant
393 hi def link ConkyrcNumber Number
394 hi def link ConkyrcColour Special
396 hi def link ConkyrcText String
397 hi def link ConkyrcVar Identifier
398 hi def link ConkyrcVarName Keyword
400 let b:current_syntax = "conkyrc"