blob: 61f475bc99ca4f1274d588d5f91667d6c8941b37 [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 +020029
Bram Moolenaarf37506f2016-08-31 22:22:10 +020030hi def link chAccess chStatement
31hi def link chExceptions Exception
32hi def link chStatement Statement
33hi def link chType Type
34hi def link chStructure Structure
Bram Moolenaar071d4272004-06-13 20:20:40 +000035
36let b:current_syntax = "ch"
37
38" vim: ts=8