1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-14 19:39:47 +00:00
conky/extras/vim/syntax/conkyrc.vim
Brenden Matthews a1452f5db4 * Applied 12 patches:
1) sysfs battery support (for Linux >=2.6.24) (thanks Kapil)
        2) Improved audacious support patch (thanks Miroslav)
        3) tp_smapi support patch for IBM laptops (thanks Phil)
        4) user info patch (thanks Roland)
        5) added conky build info patch (thanks Roland)
        6) added if_up patch (thanks Phil)
        7) added reload on SIGHUP patch (thanks Jonas)
        8) added pad percentages patch (thanks Jonas)
        9) added fs_type patch (thanks Ryan)
        10) added xmms2 fixes patch (thanks Lassi)
        11) fix sysfs crash patch (thanks Phil)
        12) multiple ip patch ($addrs)
    * Added more alignment support (top_middle, bottom_middle, middle_left,
    and middle_right).


git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1010 7f574dfc-610e-0410-a909-a81674777703
2008-03-18 00:23:16 +00:00

270 lines
6.0 KiB
VimL

" Vim syntax file
" Language: conkyrc
" Author: Ciaran McCreesh <ciaranm@gentoo.org>
" Version: 20060307
" Copyright: Copyright (c) 2005 Ciaran McCreesh
" Licence: You may redistribute this under the same terms as Vim itself
"
" $Id$
if exists("b:current_syntax")
finish
endif
syn region ConkyrcComment start=/^\s*#/ end=/$/
syn keyword ConkyrcSetting
\ alignment
\ background
\ border_margin
\ border_width
\ cpu_avg_samples
\ default_color
\ default_outline_color
\ default_shade_color
\ double_buffer
\ draw_borders
\ draw_graph_borders
\ draw_outline
\ draw_shades
\ font
\ gap_x
\ gap_y
\ imap
\ mail_spool
\ max_port_monitor_connections
\ max_specials
\ max_user_text
\ maximum_width
\ minimum_size
\ mpd_host
\ mpd_password
\ mpd_port
\ music_player_interval
\ net_avg_samples
\ no_buffers
\ out_to_console
\ override_utf8_locale
\ own_window
\ own_window_class
\ own_window_colour
\ own_window_hints
\ own_window_title
\ own_window_transparent
\ own_window_type
\ pad_percents
\ pop3
\ stippled_borders
\ total_run_times
\ update_interval
\ uppercase
\ use_spacer
\ use_xft
\ wm_class_name
\ xftalpha
\ xftfont
syn keyword ConkyrcConstant
\ above
\ below
\ bottom_left
\ bottom_right
\ desktop
\ no
\ none
\ normal
\ override
\ skip_pager
\ skip_taskbar
\ sticky
\ top_left
\ top_right
\ undecorated
\ yes
syn match ConkyrcNumber /\S\@<!\d\+\(\.\d\+\)\?\(\S\@!\|}\@=\)/
\ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
syn match ConkyrcColour /\S\@<!#[a-fA-F0-9]\{6\}\(\S\@!\|}\@=\)/
\ nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
syn region ConkyrcText start=/^TEXT$/ end=/\%$/ contains=ConkyrcVar
syn region ConkyrcVar start=/\${/ end=/}/ contained contains=ConkyrcVarStuff
syn region ConkyrcVar start=/\$\w\@=/ end=/\W\@=\|$/ contained contains=ConkyrcVarName
syn match ConkyrcVarStuff /{\@<=/ms=s contained nextgroup=ConkyrcVarName
syn keyword ConkyrcVarName contained nextgroup=ConkyrcNumber,ConkyrcColour skipwhite
\ acpiacadapter
\ acpifan
\ acpitemp
\ acpitempf
\ addr
\ adt746xcpu
\ adt746xfan
\ alignc
\ alignr
\ apm_adapter
\ apm_battery_life
\ apm_battery_time
\ audacious_bar
\ audacious_bitrate
\ audacious_channels
\ audacious_filename
\ audacious_frequency
\ audacious_length
\ audacious_length_seconds
\ audacious_playlist_length
\ audacious_playlist_position
\ audacious_position
\ audacious_position_seconds
\ audacious_status
\ audacious_title
\ battery
\ battery_time
\ bmpx_album
\ bmpx_artist
\ bmpx_bitrate
\ bmpx_title
\ bmpx_track
\ bmpx_uri
\ buffers
\ cached
\ color
\ colour
\ cpu
\ cpubar
\ cpugraph
\ diskio
\ diskiograph
\ downspeed
\ downspeedf
\ downspeedgraph
\ else
\ entropy_avail
\ entropy_bar
\ entropy_poolsize
\ exec
\ execbar
\ execgraph
\ execi
\ execibar
\ execigraph
\ font
\ freq
\ freq_dyn
\ freq_dyn_g
\ freq_g
\ fs_bar
\ fs_free
\ fs_free_perc
\ fs_size
\ fs_used
\ goto
\ hddtemp
\ head
\ hr
\ hwmon
\ i2c
\ i8k_ac_status
\ i8k_bios
\ i8k_buttons_status
\ i8k_cpu_temp
\ i8k_cpu_tempf
\ i8k_left_fan_rpm
\ i8k_left_fan_status
\ i8k_right_fan_rpm
\ i8k_right_fan_status
\ i8k_serial
\ i8k_version
\ if_existing
\ if_mounted
\ if_running
\ kernel
\ linkstatus
\ loadavg
\ machine
\ mails
\ mem
\ membar
\ memmax
\ memperc
\ mpd_album
\ mpd_artist
\ mpd_bar
\ mpd_bitrate
\ mpd_elapsed
\ mpd_file
\ mpd_length
\ mpd_name
\ mpd_percent
\ mpd_smart
\ mpd_status
\ mpd_title
\ mpd_vol
\ new_mails
\ nodename
\ offset
\ outlinecolor
\ platform
\ pre_exec
\ processes
\ running_processes
\ shadecolor
\ stippled_hr
\ swap
\ swapbar
\ swapmax
\ swapperc
\ sysname
\ tab
\ tail
\ tcp_portmon
\ texeci
\ time
\ top
\ top_mem
\ totaldown
\ totalup
\ tztime
\ updates
\ upspeed
\ upspeedf
\ upspeedgraph
\ uptime
\ uptime_short
\ voffset
\ voltage_mv
\ voltage_v
\ xmms2_artist
\ xmms2_album
\ xmms2_title
\ xmms2_genre
\ xmms2_comment
\ xmms2_url
\ xmms2_tracknr
\ xmms2_bitrate
\ xmms2_id
\ xmms2_duration
\ xmms2_elapsed
\ xmms2_date
\ xmms2_size
\ xmms2_percent
\ xmms2_status
\ xmms2_bar
\ xmms2_timesplayed
\ xmms2_playlist
\ xmms2_smart
hi def link ConkyrcComment Comment
hi def link ConkyrcSetting Keyword
hi def link ConkyrcConstant Constant
hi def link ConkyrcNumber Number
hi def link ConkyrcColour Special
hi def link ConkyrcText String
hi def link ConkyrcVar Identifier
hi def link ConkyrcVarName Keyword
let b:current_syntax = "conkyrc"