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 / runtime / dos / syntax / udevconf.vim < prev    next >
Encoding:
Text File  |  2010-08-14  |  1.2 KB  |  40 lines

  1. " Vim syntax file
  2. " Language:         udev(8) configuration file
  3. " Maintainer:       Nikolai Weibull <now@bitwi.se>
  4. " Latest Revision:  2006-04-19
  5.  
  6. if exists("b:current_syntax")
  7.   finish
  8. endif
  9.  
  10. let s:cpo_save = &cpo
  11. set cpo&vim
  12.  
  13. syn keyword udevconfTodo        contained TODO FIXME XXX NOTE
  14.  
  15. syn region  udevconfComment     display oneline start='^\s*#' end='$'
  16.                                 \ contains=udevconfTodo,@Spell
  17.  
  18. syn match   udevconfBegin       display '^'
  19.                                 \ nextgroup=udevconfVariable,udevconfComment
  20.                                 \ skipwhite
  21.  
  22. syn keyword udevconfVariable    contained udev_root udev_db udev_rules udev_log
  23.                                 \ nextgroup=udevconfVariableEq
  24.  
  25. syn match   udevconfVariableEq  contained '[[:space:]=]'
  26.                                 \ nextgroup=udevconfString skipwhite
  27.  
  28. syn region  udevconfString      contained display oneline start=+"+ end=+"+
  29.  
  30. hi def link udevconfTodo        Todo
  31. hi def link udevconfComment     Comment
  32. hi def link udevconfVariable    Identifier
  33. hi def link udevconfVariableEq  Operator
  34. hi def link udevconfString      String
  35.  
  36. let b:current_syntax = "udevconf"
  37.  
  38. let &cpo = s:cpo_save
  39. unlet s:cpo_save
  40.