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
15 elseif exists("b:current_syntax")
19 " Read the C syntax to start with
24 unlet b:current_syntax
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")
38 let did_ch_syntax_inits = 1
39 command -nargs=+ HiLink hi link <args>
41 command -nargs=+ HiLink hi def link <args>
43 HiLink chAccess chStatement
44 HiLink chExceptions Exception
45 HiLink chStatement Statement
47 HiLink chStructure Structure
51 let b:current_syntax = "ch"