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 / ch.vim < prev    next >
Encoding:
Text File  |  2010-08-15  |  1.3 KB  |  54 lines

  1. " Vim syntax file
  2. " Language:     Ch
  3. " Maintainer:   SoftIntegration, Inc. <info@softintegration.com>
  4. " URL:        http://www.softintegration.com/download/vim/syntax/ch.vim
  5. " Last change:    2004 Sep 01
  6. "        Created based on cpp.vim
  7. "
  8. " Ch is a C/C++ interpreter with many high level extensions
  9. "
  10.  
  11. " For version 5.x: Clear all syntax items
  12. " For version 6.x: Quit when a syntax file was already loaded
  13. if version < 600
  14.   syntax clear
  15. elseif exists("b:current_syntax")
  16.   finish
  17. endif
  18.  
  19. " Read the C syntax to start with
  20. if version < 600
  21.   so <sfile>:p:h/c.vim
  22. else
  23.   runtime! syntax/c.vim
  24.   unlet b:current_syntax
  25. endif
  26.  
  27. " Ch extentions
  28.  
  29. syn keyword    chStatement    new delete this foreach
  30. syn keyword    chAccess    public private
  31. syn keyword    chStorageClass    __declspec(global) __declspec(local)
  32. syn keyword    chStructure    class
  33. syn keyword    chType        string_t array
  34.  
  35. " Default highlighting
  36. if version >= 508 || !exists("did_ch_syntax_inits")
  37.   if version < 508
  38.     let did_ch_syntax_inits = 1
  39.     command -nargs=+ HiLink hi link <args>
  40.   else
  41.     command -nargs=+ HiLink hi def link <args>
  42.   endif
  43.   HiLink chAccess        chStatement
  44.   HiLink chExceptions        Exception
  45.   HiLink chStatement        Statement
  46.   HiLink chType            Type
  47.   HiLink chStructure        Structure
  48.   delcommand HiLink
  49. endif
  50.  
  51. let b:current_syntax = "ch"
  52.  
  53. " vim: ts=8
  54.