Snapshot 52
[MacVim.git] / runtime / syntax / ch.vim
blobadd7395093bfc1e6493a7722912ebd603044266f
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
8 " Ch is a C/C++ interpreter with many high level extensions
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
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
27 " Ch extentions
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
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
51 let b:current_syntax = "ch"
53 " vim: ts=8