1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 18:45:10 +00:00

vim/nano syntax coloring updates

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@742 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Philip Kovacs 2006-11-09 19:14:19 +00:00
parent 5c61f80c41
commit 60d035829c
4 changed files with 19 additions and 13 deletions

2
syntax/nano/README Normal file
View File

@ -0,0 +1,2 @@
Append the contents of conky.nanorc to your $HOME/.nanorc for nano
syntax coloring of your $HOME/.conkyrc file.

View File

@ -1,10 +1,18 @@
##
## Syntax highlighting for conky .rc files.
##
## $Id$
##
syntax "conky" "\.*conkyrc.*$"
color green "\<(alignment|background|on_bottom|border_margin|border_width|cpu_avg_samples|default_color|default_shade_color|default_outline_color|double_buffer|draw_borders|draw_shades|draw_outline|font|gap_x|gap_y|no_buffers|mail_spool|maximum_width|minimum_size|mldonkey_hostname|mldonkey_port|mldonkey_login|mldonkey_password|mpd_host|mpd_port|mpd_password|net_avg_samples|override_utf8_locale|own_window|own_window_transparent|own_window_type|own_window_hints|own_window_colour|pad_percents|stippled_borders|total_run_times|update_interval|uppercase|use_spacer|use_xft)\>"
color brightblue "\<(addr|acpiacadapter|acpifan|acpitemp|acpitempf|adt746xcpu|adt746xfan|alignr|alignc|apm_adapter|apm_battery_life|apm_battery_time|battery|buffers|cached|color|cpu|cpubar|colour|diskio|downspeed|downspeedf|colour|else|exec|execbar|execgraph|execi|execibar|execigraph|font|freq|freq_g|freq_dyn|freq_dyn_g|fs_bar|fs_free|fs_free_perc|fs_size|fs_used|head|hr|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_running|if_existing|if_mounted|kernel|linkstatus|loadavg|machine|mails|mem|membar|memmax|memperc|ml_upload_counter|ml_download_counter|ml_nshared_files|ml_shared_counter|ml_tcp_upload_rate|ml_tcp_download_rate|ml_udp_upload_rate|ml_udp_download_rate|ml_ndownloaded_files|ml_ndownloading_files|mpd_artist|mpd_album|mpd_bar|mpd_bitrate|mpd_status|mpd_title|mpd_vol|mpd_elapsed||mpd_length|mpd_percent|new_mails|nodename|outlinecolor|pre_exec|processes|running_processes|shadecolor|stippled_hr|swapbar|swap|swapmax|swapperc|sysname|texeci|offset|tail|time|totaldown|top|top_mem|totalup|updates|upspeed|upspeedf|upspeedgraph|uptime|uptime_short|seti_prog|seti_progbar|seti_credit|voffset)\>"
icolor brightblue "\$\{?[0-9A-Z_!@#$*?-]+\}?"
## Configuration items
color green "\<(alignment|background|border_margin|border_width|cpu_avg_samples|default_color|default_shade_color|default_outline_color|double_buffer|draw_borders|draw_shades|draw_outline|font|gap_x|gap_y|mail_spool|max_user_text|maximum_width|minimum_size|min_port_monitor_connections|min_port_monitors|mpd_host|mpd_port|mpd_password|net_avg_samples|no_buffers|out_to_console|override_utf8_locale|own_window|own_window_transparent|own_window_type|own_window_hints|own_window_colour|pad_percents|stippled_borders|total_run_times|update_interval|uppercase|use_spacer|use_xft|wm_class_name|xftalpha|xftfont)\>"
## Variables
color brightblue "\<(acpiacadapter|acpifan|acpitemp|acpitempf|addr|adt746xcpu|adt746xfan|align|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|bmpx_album|bmpx_artist|bmpx_bitrate|bmpx_title|bmpx_track|bmpx_uri|buffers|cached|color|colour|cpu|cpubar|diskio|downspeed|downspeedf|else|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|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_running|if_mounted|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|pre_exec|processes|running_processes|shadecolor|stippled_hr|swap|swapbar|swapmax|swapperc|sysname|tab|tail|tcp_portmon|texeci|time|top|top_mem|totaldown|totalup|updates|upspeed|upspeedf|upspeedgraph|uptime|uptime_short|voffset)\>"
color brightblue "\$\{?[0-9A-Z_!@#$*?-]+\}?"
color cyan "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
color brightred "^TEXT$"
## Values
color yellow "\<(above|below|bottom_left|bottom_right|desktop|no|none|normal|override|skip_pager|skip_taskbar|sticky|top_left|top_right|undecorated|yes)\>"

View File

@ -1,5 +1,3 @@
$Id$
Vim filetype detection and syntax highlighting scripts for conky.
Individual users can place them your personal .vim directory:

View File

@ -41,7 +41,6 @@ syn keyword ConkyrcSetting
\ mpd_port
\ net_avg_samples
\ no_buffers
\ on_bottom
\ out_to_console
\ override_utf8_locale
\ own_window
@ -62,9 +61,7 @@ syn keyword ConkyrcSetting
syn keyword ConkyrcConstant
\ above
\ audacious
\ below
\ bmp
\ bottom_left
\ bottom_right
\ desktop
@ -150,9 +147,10 @@ syn keyword ConkyrcVarName contained nextgroup=ConkyrcNumber,ConkyrcColour skipw
\ fs_free
\ fs_free_perc
\ fs_size
\ fs_used head
\ fs_used
\ goto
\ hddtemp
\ head
\ hr
\ i2c
\ i8k_ac_status
@ -183,13 +181,13 @@ syn keyword ConkyrcVarName contained nextgroup=ConkyrcNumber,ConkyrcColour skipw
\ mpd_bar
\ mpd_bitrate
\ mpd_elapsed
\ mpd_file
\ mpd_length
\ mpd_name
\ mpd_percent
\ mpd_smart
\ mpd_status
\ mpd_title
\ mpd_file
\ mpd_name
\ mpd_smart
\ mpd_title
\ mpd_vol
\ new_mails
\ nodename