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
10 if exists("b:current_syntax")
14 syn region ConkyrcComment start=/^\s*#/ end=/$/
16 syn keyword ConkyrcSetting
23 \ default_outline_color
35 \ max_port_monitor_connections
43 \ music_player_interval
47 \ override_utf8_locale
53 \ own_window_transparent
67 syn keyword ConkyrcConstant
89 syn match ConkyrcNumber /\S\@<!\d\+\(\.\d\+\)\?\(\S\@!\|}\@=\)/
90 \ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
91 syn match ConkyrcColour /\S\@<!#[a-fA-F0-9]\{6\}\(\S\@!\|}\@=\)/
92 \ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
94 syn region ConkyrcText start=/^TEXT$/ end=/\%$/ contains=ConkyrcVar
96 syn region ConkyrcVar start=/\${/ end=/}/ contained contains=ConkyrcVarStuff
97 syn region ConkyrcVar start=/\$\w\@=/ end=/\W\@=\|$/ contained contains=ConkyrcVarName
99 syn match ConkyrcVarStuff /{\@<=/ms=s contained nextgroup=ConkyrcVarName
101 syn keyword ConkyrcVarName contained nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
118 \ audacious_frequency
120 \ audacious_length_seconds
121 \ audacious_playlist_length
122 \ audacious_playlist_position
124 \ audacious_position_seconds
180 \ i8k_left_fan_status
182 \ i8k_right_fan_status
264 hi def link ConkyrcComment Comment
265 hi def link ConkyrcSetting Keyword
266 hi def link ConkyrcConstant Constant
267 hi def link ConkyrcNumber Number
268 hi def link ConkyrcColour Special
270 hi def link ConkyrcText String
271 hi def link ConkyrcVar Identifier
272 hi def link ConkyrcVarName Keyword
274 let b:current_syntax = "conkyrc"