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 / group.vim < prev    next >
Encoding:
Text File  |  2010-08-15  |  1.7 KB  |  53 lines

  1. " Vim syntax file
  2. " Language:         group(5) user group 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 match   groupBegin          display '^' nextgroup=groupName
  14.  
  15. syn match   groupName           contained display '[a-z_][a-z0-9_-]\{0,15}'
  16.                                 \ nextgroup=groupPasswordColon
  17.  
  18. syn match   groupPasswordColon  contained display ':'
  19.                                 \ nextgroup=groupPassword,groupShadow
  20.  
  21. syn match   groupPassword       contained display '[^:]*'
  22.                                 \ nextgroup=groupGIDColon
  23.  
  24. syn match   groupShadow         contained display '[x*]' nextgroup=groupGIDColon
  25.  
  26. syn match   groupGIDColon       contained display ':' nextgroup=groupGID
  27.  
  28. syn match   groupGID            contained display '\d*'
  29.                                 \ nextgroup=groupUserListColon
  30.  
  31. syn match   groupUserListColon  contained display ':' nextgroup=groupUserList
  32.  
  33. syn match   groupUserList       contained '[a-z_][a-z0-9_-]*'
  34.                                 \ nextgroup=groupUserListSep
  35.  
  36. syn match   groupUserListSep    contained display ',' nextgroup=groupUserList
  37.  
  38. hi def link groupDelimiter      Normal
  39. hi def link groupName           Identifier
  40. hi def link groupPasswordColon  groupDelimiter
  41. hi def link groupPassword       Number
  42. hi def link groupShadow         Special
  43. hi def link groupGIDColon       groupDelimiter
  44. hi def link groupGID            Number
  45. hi def link groupUserListColon  groupDelimiter
  46. hi def link groupUserList       Identifier
  47. hi def link groupUserListSep    groupDelimiter
  48.  
  49. let b:current_syntax = "group"
  50.  
  51. let &cpo = s:cpo_save
  52. unlet s:cpo_save
  53.