xref: /vim-8.2.3635/runtime/syntax/ch.vim (revision 89bcfda6)
1" Vim syntax file
2" Language:     Ch
3" Maintainer:   SoftIntegration, Inc. <[email protected]>
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" quit when a syntax file was already loaded
12if exists("b:current_syntax")
13  finish
14endif
15
16" Read the C syntax to start with
17runtime! syntax/c.vim
18unlet b:current_syntax
19
20" Ch extentions
21
22syn keyword	chStatement	new delete this foreach
23syn keyword	chAccess	public private
24syn keyword	chStorageClass	__declspec(global) __declspec(local)
25syn keyword	chStructure	class
26syn keyword	chType		string_t array
27
28" Default highlighting
29command -nargs=+ HiLink hi def link <args>
30
31HiLink chAccess		chStatement
32HiLink chExceptions		Exception
33HiLink chStatement		Statement
34HiLink chType			Type
35HiLink chStructure		Structure
36delcommand HiLink
37
38let b:current_syntax = "ch"
39
40" vim: ts=8
41