Mercurial > vim
annotate runtime/syntax/grads.vim @ 10048:43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 30 23:26:57 2016 +0200
Updated runtime files. Remove version checks for Vim older than 6.0.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 30 Aug 2016 23:30:09 +0200 |
parents | 3fc0f57ecb91 |
children | 46763b01cd9a |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: grads (GrADS scripts) | |
3 " Maintainer: Stefan Fronzek (sfronzek at gmx dot net) | |
4 " Last change: 13 Feb 2004 | |
5 | |
6 " Grid Analysis and Display System (GrADS); http://grads.iges.org/grads | |
7 " This syntax file defines highlighting for only very few features of | |
8 " the GrADS scripting language. | |
9 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
10 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
11 if exists("b:current_syntax") |
7 | 12 finish |
13 endif | |
14 | |
15 " GrADS is entirely case-insensitive. | |
16 syn case ignore | |
17 | |
18 " The keywords | |
19 | |
20 syn keyword gradsStatement if else endif break exit return | |
21 syn keyword gradsStatement while endwhile say prompt pull function | |
22 syn keyword gradsStatement subwrd sublin substr read write close | |
23 " String | |
24 | |
25 syn region gradsString start=+'+ end=+'+ | |
26 | |
27 " Integer number | |
28 syn match gradsNumber "[+-]\=\<[0-9]\+\>" | |
29 | |
30 " Operator | |
31 | |
32 "syn keyword gradsOperator | ! % & != >= | |
33 "syn match gradsOperator "[^\.]not[^a-zA-Z]" | |
34 | |
35 " Variables | |
36 | |
37 syn keyword gradsFixVariables lat lon lev result rec rc | |
38 syn match gradsglobalVariables "_[a-zA-Z][a-zA-Z0-9]*" | |
39 syn match gradsVariables "[a-zA-Z][a-zA-Z0-9]*" | |
40 syn match gradsConst "#[A-Z][A-Z_]+" | |
41 | |
42 " Comments | |
43 | |
44 syn match gradsComment "\*.*" | |
45 | |
46 " Typical Typos | |
47 | |
48 " for C programmers: | |
49 " syn match gradsTypos "==" | |
50 " syn match gradsTypos "!=" | |
51 | |
52 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
53 " Only when an item doesn't hgs highlighting+yet |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
54 command -nargs=+ HiLink hi def link <args> |
7 | 55 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
56 HiLink gradsStatement Statement |
7 | 57 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
58 HiLink gradsString String |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
59 HiLink gradsNumber Number |
7 | 60 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
61 HiLink gradsFixVariables Special |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
62 HiLink gradsVariables Identifier |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
63 HiLink gradsglobalVariables Special |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
64 HiLink gradsConst Special |
7 | 65 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
66 HiLink gradsClassMethods Function |
7 | 67 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
68 HiLink gradsOperator Operator |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
69 HiLink gradsComment Comment |
7 | 70 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
71 HiLink gradsTypos Error |
7 | 72 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
7
diff
changeset
|
73 delcommand HiLink |
7 | 74 |
75 let b:current_syntax = "grads" |