blob: 2e787c8cc5ffaf11e5ef479fa0b03b90bc8b1257 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" 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 May 16
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
13if version < 600
14 syntax clear
15elseif exists("b:current_syntax")
16 finish
17endif
18
19" Read the C syntax to start with
20if version < 600
21 so <sfile>:p:h/c.vim
22else
23 runtime! syntax/c.vim
24 unlet b:current_syntax
25endif
26
27" Ch extentions
28
29syn keyword chStatement new delete this
30syn keyword chAccess public private
31syn keyword chStorageClass __declspec(global) __declspec(local)
32syn keyword chStructure class
33syn keyword chType string_t array
34
35" Default highlighting
36if 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
49endif
50
51let b:current_syntax = "ch"
52
53" vim: ts=8