Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
92 lines (78 sloc) 4.24 KB
" Vim syntax file
" This is a GENERATED FILE. Please always refer to source file at the URI below.
" Language: gkrellm theme files `gkrellmrc'
" Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>
" Last Change: 2003-04-30
" URL: http://trific.ath.cx/Ftp/vim/syntax/gkrellmrc.vim
" Setup
if version >= 600
if exists("b:current_syntax")
finish
endif
else
syntax clear
endif
if version >= 600
setlocal iskeyword=_,-,a-z,A-Z,48-57
else
set iskeyword=_,-,a-z,A-Z,48-57
endif
syn case match
" Base constructs
syn match gkrellmrcComment "#.*$" contains=gkrellmrcFixme
syn keyword gkrellmrcFixme FIXME TODO XXX NOT contained
syn region gkrellmrcString start=+"+ skip=+\\\\\|\\"+ end=+"+ oneline
syn match gkrellmrcNumber "^-\=\(\d\+\)\=\.\=\d\+"
syn match gkrellmrcNumber "\W-\=\(\d\+\)\=\.\=\d\+"lc=1
syn keyword gkrellmrcConstant none
syn match gkrellmrcRGBColor "#\(\x\{12}\|\x\{9}\|\x\{6}\|\x\{3}\)\>"
" Keywords
syn keyword gkrellmrcBuiltinExt cpu_nice_color cpu_nice_grid_color krell_depth krell_expand krell_left_margin krell_right_margin krell_x_hot krell_yoff mem_krell_buffers_depth mem_krell_buffers_expand mem_krell_buffers_x_hot mem_krell_buffers_yoff mem_krell_cache_depth mem_krell_cache_expand mem_krell_cache_x_hot mem_krell_cache_yoff sensors_bg_volt timer_bg_timer
syn keyword gkrellmrcGlobal allow_scaling author chart_width_ref theme_alternatives
syn keyword gkrellmrcSetCmd set_image_border set_integer set_string
syn keyword gkrellmrcGlobal bg_slider_meter_border bg_slider_panel_border
syn keyword gkrellmrcGlobal frame_bottom_height frame_left_width frame_right_width frame_top_height frame_left_chart_overlap frame_right_chart_overlap frame_left_panel_overlap frame_right_panel_overlap frame_left_spacer_overlap frame_right_spacer_overlap spacer_overlap_off cap_images_off
syn keyword gkrellmrcGlobal frame_bottom_border frame_left_border frame_right_border frame_top_border spacer_top_border spacer_bottom_border frame_left_chart_border frame_right_chart_border frame_left_panel_border frame_right_panel_border
syn keyword gkrellmrcGlobal chart_in_color chart_in_color_grid chart_out_color chart_out_color_grid
syn keyword gkrellmrcGlobal bg_separator_height bg_grid_mode
syn keyword gkrellmrcGlobal rx_led_x rx_led_y tx_led_x tx_led_y
syn keyword gkrellmrcGlobal decal_mail_frames decal_mail_delay
syn keyword gkrellmrcGlobal decal_alarm_frames decal_warn_frames
syn keyword gkrellmrcGlobal krell_slider_depth krell_slider_expand krell_slider_x_hot
syn keyword gkrellmrcGlobal button_panel_border button_meter_border
syn keyword gkrellmrcGlobal large_font normal_font small_font
syn keyword gkrellmrcGlobal spacer_bottom_height spacer_top_height spacer_bottom_height_chart spacer_top_height_chart spacer_bottom_height_meter spacer_top_height_meter
syn keyword gkrellmrcExpandMode left right bar-mode left-scaled right-scaled bar-mode-scaled
syn keyword gkrellmrcMeterName apm cal clock fs host mail mem swap timer sensors uptime
syn keyword gkrellmrcChartName cpu proc disk inet and net
syn match gkrellmrcSpecialClassName "\*"
syn keyword gkrellmrcStyleCmd StyleMeter StyleChart StylePanel
syn keyword gkrellmrcStyleItem textcolor alt_textcolor font alt_font transparency border label_position margin margins left_margin right_margin top_margin bottom_margin krell_depth krell_yoff krell_x_hot krell_expand krell_left_margin krell_right_margin
" Define the default highlighting
if version >= 508 || !exists("did_gtkrc_syntax_inits")
if version < 508
let did_gtkrc_syntax_inits = 1
command -nargs=+ HiLink hi link <args>
else
command -nargs=+ HiLink hi def link <args>
endif
HiLink gkrellmrcComment Comment
HiLink gkrellmrcFixme Todo
HiLink gkrellmrcString gkrellmrcConstant
HiLink gkrellmrcNumber gkrellmrcConstant
HiLink gkrellmrcRGBColor gkrellmrcConstant
HiLink gkrellmrcExpandMode gkrellmrcConstant
HiLink gkrellmrcConstant Constant
HiLink gkrellmrcMeterName gkrellmrcClass
HiLink gkrellmrcChartName gkrellmrcClass
HiLink gkrellmrcSpecialClassName gkrellmrcClass
HiLink gkrellmrcClass Type
HiLink gkrellmrcGlobal gkrellmrcItem
HiLink gkrellmrcBuiltinExt gkrellmrcItem
HiLink gkrellmrcStyleItem gkrellmrcItem
HiLink gkrellmrcItem Function
HiLink gkrellmrcSetCmd Special
HiLink gkrellmrcStyleCmd Statement
delcommand HiLink
endif
let b:current_syntax = "gkrellmrc"
Jump to Line
Something went wrong with that request. Please try again.