Mercurial > vim
annotate runtime/syntax/ch.vim @ 18518:59c56c97049d v8.1.2253
patch 8.1.2253: using "which" to check for an executable is not reliable
Commit: https://github.com/vim/vim/commit/ad4de52510d5b4a949c0c9e25b5d5333744820b3
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Nov 4 21:24:48 2019 +0100
patch 8.1.2253: using "which" to check for an executable is not reliable
Problem: Using "which" to check for an executable is not reliable.
Solution: Use "command -v" instead. Also exit with error code when
generating tags has an error. (closes #5174)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 04 Nov 2019 21:30:03 +0100 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Ch | |
3 " Maintainer: SoftIntegration, Inc. <info@softintegration.com> | |
4 " URL: http://www.softintegration.com/download/vim/syntax/ch.vim | |
22 | 5 " Last change: 2004 Sep 01 |
7 | 6 " Created based on cpp.vim |
7 " | |
8 " Ch is a C/C++ interpreter with many high level extensions | |
9 " | |
10 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
22
diff
changeset
|
11 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
22
diff
changeset
|
12 if exists("b:current_syntax") |
7 | 13 finish |
14 endif | |
15 | |
16 " Read the C syntax to start with | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
22
diff
changeset
|
17 runtime! syntax/c.vim |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
22
diff
changeset
|
18 unlet b:current_syntax |
7 | 19 |
20 " Ch extentions | |
21 | |
22 | 22 syn keyword chStatement new delete this foreach |
7 | 23 syn keyword chAccess public private |
24 syn keyword chStorageClass __declspec(global) __declspec(local) | |
25 syn keyword chStructure class | |
26 syn keyword chType string_t array | |
27 | |
28 " Default highlighting | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
22
diff
changeset
|
29 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
30 hi def link chAccess chStatement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
31 hi def link chExceptions Exception |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
32 hi def link chStatement Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
33 hi def link chType Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
34 hi def link chStructure Structure |
7 | 35 |
36 let b:current_syntax = "ch" | |
37 | |
38 " vim: ts=8 |