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
85 syn match ConkyrcNumber /\S\@<!\d\+\(\.\d\+\)\?\(\S\@!\|}\@=\)/
86 \ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
87 syn match ConkyrcColour /\S\@<!#[a-fA-F0-9]\{6\}\(\S\@!\|}\@=\)/
88 \ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
90 syn region ConkyrcText start=/^TEXT$/ end=/\%$/ contains=ConkyrcVar
92 syn region ConkyrcVar start=/\${/ end=/}/ contained contains=ConkyrcVarStuff
93 syn region ConkyrcVar start=/\$\w\@=/ end=/\W\@=\|$/ contained contains=ConkyrcVarName
95 syn match ConkyrcVarStuff /{\@<=/ms=s contained nextgroup=ConkyrcVarName
97 syn keyword ConkyrcVarName contained nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
114 \ audacious_frequency
116 \ audacious_length_seconds
117 \ audacious_playlist_length
118 \ audacious_playlist_position
120 \ audacious_position_seconds
175 \ i8k_left_fan_status
177 \ i8k_right_fan_status
240 hi def link ConkyrcComment Comment
241 hi def link ConkyrcSetting Keyword
242 hi def link ConkyrcConstant Constant
243 hi def link ConkyrcNumber Number
244 hi def link ConkyrcColour Special
246 hi def link ConkyrcText String
247 hi def link ConkyrcVar Identifier
248 hi def link ConkyrcVarName Keyword
250 let b:current_syntax = "conkyrc"