annotate runtime/syntax/crm.vim @ 284:e697bd3c3876 v7.0075

updated for version 7.0075
author vimboss
date Sun, 22 May 2005 22:12:58 +0000
parents 3fc0f57ecb91
children f14cbd913415
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: CRM114
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Nikolai Weibull <source@pcppopper.org>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://www.pcppopper.org/vim/syntax/pcp/crm/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Latest Revision: 2004-05-22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " arch-tag: a3d3eaaf-4700-44ff-b332-f6c42c036883
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn keyword crmTodo contained TODO FIXME XXX NOTE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn region crmComment matchgroup=crmComment start='#' end='$' end='\\#' contains=crmTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " Variables
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match crmVariable ':[*#@]:[^:]\{-1,}:'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " Special Characters
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match crmSpecial '\\\%(x\x\x\|o\o\o\o\|[]nrtabvf0>)};/\\]\)'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " Statements
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword crmStatement insert noop accept alius alter classify eval exit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword crmStatement fail fault goto hash intersect isolate input learn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword crmStatement liaf match output syscall trap union window
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " Regexes
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn region crmRegex matchgroup=crmRegex start='/' skip='\\/' end='/' contains=crmVariable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " Labels
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match crmLabel '^\s*:[[:graph:]]\+:'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 if version >= 508 || !exists("did_crm_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 let did_crm_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 HiLink crmTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 HiLink crmComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 HiLink crmVariable Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 HiLink crmSpecial SpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 HiLink crmStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 HiLink crmRegex String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 HiLink crmLabel Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 let b:current_syntax = "crm"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " vim: set sts=2 sw=2: