comparison runtime/syntax/crm.vim @ 375:f14cbd913415 v7.0097

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