annotate runtime/syntax/ch.vim @ 4740:97560c16ca99 v7.3.1117

updated for version 7.3.1117 Problem: New regexp engine: \%[abc] not supported. Solution: Implement \%[abc]. Add tests.
author Bram Moolenaar <bram@vim.org>
date Wed, 05 Jun 2013 11:05:17 +0200
parents cc049b00ee70
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Ch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: SoftIntegration, Inc. <info@softintegration.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://www.softintegration.com/download/vim/syntax/ch.vim
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
5 " Last change: 2004 Sep 01
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Created based on cpp.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Ch is a C/C++ interpreter with many high level extensions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " Read the C syntax to start with
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 so <sfile>:p:h/c.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 runtime! syntax/c.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 unlet b:current_syntax
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " Ch extentions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 7
diff changeset
29 syn keyword chStatement new delete this foreach
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword chAccess public private
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword chStorageClass __declspec(global) __declspec(local)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword chStructure class
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword chType string_t array
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " Default highlighting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 if version >= 508 || !exists("did_ch_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 let did_ch_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 HiLink chAccess chStatement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 HiLink chExceptions Exception
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 HiLink chStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 HiLink chType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 HiLink chStructure Structure
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 let b:current_syntax = "ch"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 " vim: ts=8