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 / mac / vim55rt.sit / runtime / syntax / config.vim < prev    next >
Encoding:
Text File  |  1999-09-25  |  1.4 KB  |  43 lines  |  [TEXT/VIM!]

  1. " Vim syntax file
  2. " Language:     configure.in script: M4 with sh
  3. " Maintainer:   Christian Hammesr <ch@lathspell.westend.com>
  4. " Last change:  1999 Apr 21
  5.  
  6. " Well, I actually even do not know much about m4. This explains why there
  7. " is probably very much missing here, yet !
  8. " But I missed a good hilighting when editing my GNU autoconf/automake
  9. " script, so I wrote this quick and dirty patch.
  10.  
  11.  
  12. " remove any old syntax stuff hanging around
  13. syn clear
  14.  
  15. " define the config syntax
  16. syn match   configdelimiter "[()\[\];,]"
  17. syn match   configoperator  "[=|&\*\+\<\>]"
  18. syn match   configcomment   "\(dnl.*\)\|\(#.*\)"
  19. syn match   configfunction  "\<[A-Z_]*\>"
  20. syn match   confignumber    "[-+]\=\<\d\+\(\.\d*\)\=\>"
  21. syn keyword configkeyword   if then else fi test for in do done
  22. syn keyword configspecial   cat rm eval
  23. syn region  configstring    start=+"+ skip=+\\"+ end=+"+
  24. syn region  configstring    start=+`+ skip=+\\'+ end=+'+
  25. syn region  configstring    start=+`+ skip=+\\'+ end=+`+
  26.  
  27. if !exists("did_config_syntax_inits")
  28.   let did_config_syntax_inits = 1
  29.   " The default methods for highlighting.  Can be overridden later
  30.   hi link configdelimiter Delimiter
  31.   hi link configoperator  Operator
  32.   hi link configcomment   Comment
  33.   hi link configfunction  Function
  34.   hi link confignumber    Number
  35.   hi link configkeyword   Keyword
  36.   hi link configspecial   Special
  37.   hi link configstring    String
  38. endif
  39.  
  40. let b:current_syntax = "config"
  41.  
  42. " vim: ts=4
  43.