home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / unix / vim-6.2.tar.bz2 / vim-6.2.tar / vim62 / runtime / syntax / gkrellmrc.vim < prev    next >
Encoding:
Text File  |  2003-04-30  |  4.2 KB  |  92 lines

  1. " Vim syntax file
  2. " This is a GENERATED FILE. Please always refer to source file at the URI below.
  3. " Language: gkrellm theme files `gkrellmrc'
  4. " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>
  5. " Last Change: 2003-04-30
  6. " URL: http://trific.ath.cx/Ftp/vim/syntax/gkrellmrc.vim
  7.  
  8. " Setup
  9. if version >= 600
  10.     if exists("b:current_syntax")
  11.         finish
  12.     endif
  13. else
  14.     syntax clear
  15. endif
  16.  
  17. if version >= 600
  18.     setlocal iskeyword=_,-,a-z,A-Z,48-57
  19. else
  20.     set iskeyword=_,-,a-z,A-Z,48-57
  21. endif
  22.  
  23. syn case match
  24.  
  25. " Base constructs
  26. syn match gkrellmrcComment "#.*$" contains=gkrellmrcFixme
  27. syn keyword gkrellmrcFixme FIXME TODO XXX NOT contained
  28. syn region gkrellmrcString start=+"+ skip=+\\\\\|\\"+ end=+"+ oneline
  29. syn match gkrellmrcNumber "^-\=\(\d\+\)\=\.\=\d\+"
  30. syn match gkrellmrcNumber "\W-\=\(\d\+\)\=\.\=\d\+"lc=1
  31. syn keyword gkrellmrcConstant none
  32. syn match gkrellmrcRGBColor "#\(\x\{12}\|\x\{9}\|\x\{6}\|\x\{3}\)\>"
  33.  
  34. " Keywords
  35. 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
  36. syn keyword gkrellmrcGlobal allow_scaling author chart_width_ref theme_alternatives
  37. syn keyword gkrellmrcSetCmd set_image_border set_integer set_string
  38. syn keyword gkrellmrcGlobal bg_slider_meter_border bg_slider_panel_border
  39. 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
  40. 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
  41. syn keyword gkrellmrcGlobal chart_in_color chart_in_color_grid chart_out_color chart_out_color_grid
  42. syn keyword gkrellmrcGlobal bg_separator_height bg_grid_mode
  43. syn keyword gkrellmrcGlobal rx_led_x rx_led_y tx_led_x tx_led_y
  44. syn keyword gkrellmrcGlobal decal_mail_frames decal_mail_delay
  45. syn keyword gkrellmrcGlobal decal_alarm_frames decal_warn_frames
  46. syn keyword gkrellmrcGlobal krell_slider_depth krell_slider_expand krell_slider_x_hot
  47. syn keyword gkrellmrcGlobal button_panel_border button_meter_border
  48. syn keyword gkrellmrcGlobal large_font normal_font small_font
  49. 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
  50. syn keyword gkrellmrcExpandMode left right bar-mode left-scaled right-scaled bar-mode-scaled
  51. syn keyword gkrellmrcMeterName apm cal clock fs host mail mem swap timer sensors uptime
  52. syn keyword gkrellmrcChartName cpu proc disk inet and net
  53. syn match gkrellmrcSpecialClassName "\*"
  54. syn keyword gkrellmrcStyleCmd StyleMeter StyleChart StylePanel
  55. 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
  56.  
  57. " Define the default highlighting
  58. if version >= 508 || !exists("did_gtkrc_syntax_inits")
  59.     if version < 508
  60.         let did_gtkrc_syntax_inits = 1
  61.         command -nargs=+ HiLink hi link <args>
  62.     else
  63.         command -nargs=+ HiLink hi def link <args>
  64.     endif
  65.  
  66.     HiLink gkrellmrcComment Comment
  67.     HiLink gkrellmrcFixme Todo
  68.  
  69.     HiLink gkrellmrcString gkrellmrcConstant
  70.     HiLink gkrellmrcNumber gkrellmrcConstant
  71.     HiLink gkrellmrcRGBColor gkrellmrcConstant
  72.     HiLink gkrellmrcExpandMode gkrellmrcConstant
  73.     HiLink gkrellmrcConstant Constant
  74.  
  75.     HiLink gkrellmrcMeterName gkrellmrcClass
  76.     HiLink gkrellmrcChartName gkrellmrcClass
  77.     HiLink gkrellmrcSpecialClassName gkrellmrcClass
  78.     HiLink gkrellmrcClass Type
  79.  
  80.     HiLink gkrellmrcGlobal gkrellmrcItem
  81.     HiLink gkrellmrcBuiltinExt gkrellmrcItem
  82.     HiLink gkrellmrcStyleItem gkrellmrcItem
  83.     HiLink gkrellmrcItem Function
  84.  
  85.     HiLink gkrellmrcSetCmd Special
  86.     HiLink gkrellmrcStyleCmd Statement
  87.  
  88.     delcommand HiLink
  89. endif
  90.  
  91. let b:current_syntax = "gkrellmrc"
  92.