blob: 05a1fcbdd6d264921e5daa54af1147ff35a6501e [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
Bram Moolenaard4755bb2004-09-02 19:12:26 +00005" Last change: 2004 Sep 01
Bram Moolenaar071d4272004-06-13 20:20:40 +00006" Created based on cpp.vim
7"
8" Ch is a C/C++ interpreter with many high level extensions
9"
10
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020011" quit when a syntax file was already loaded
12if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +000013 finish
14endif
15
16" Read the C syntax to start with
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020017runtime! syntax/c.vim
18unlet b:current_syntax
Bram Moolenaar071d4272004-06-13 20:20:40 +000019
20" Ch extentions
21
Bram Moolenaard4755bb2004-09-02 19:12:26 +000022syn keyword chStatement new delete this foreach
Bram Moolenaar071d4272004-06-13 20:20:40 +000023syn 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
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020029command -nargs=+ HiLink hi def link <args>
30
31HiLink chAccess chStatement
32HiLink chExceptions Exception
33HiLink chStatement Statement
34HiLink chType Type
35HiLink chStructure Structure
36delcommand HiLink
Bram Moolenaar071d4272004-06-13 20:20:40 +000037
38let b:current_syntax = "ch"
39
40" vim: ts=8