7
|
1 " Vim syntax file
|
11062
|
2 " Language: CRM114
|
|
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
|
4 " Latest Revision: 2006-04-19
|
7
|
5
|
375
|
6 if exists("b:current_syntax")
|
7
|
7 finish
|
|
8 endif
|
|
9
|
375
|
10 let s:cpo_save = &cpo
|
|
11 set cpo&vim
|
7
|
12
|
375
|
13 syn keyword crmTodo contained TODO FIXME XXX NOTE
|
7
|
14
|
389
|
15 syn region crmComment display oneline start='#' end='\\#'
|
375
|
16 \ contains=crmTodo,@Spell
|
7
|
17
|
375
|
18 syn match crmVariable display ':[*#@]:[^:]\{-1,}:'
|
7
|
19
|
375
|
20 syn match crmSpecial display '\\\%(x\x\x\|o\o\o\o\|[]nrtabvf0>)};/\\]\)'
|
7
|
21
|
375
|
22 syn keyword crmStatement insert noop accept alius alter classify eval exit
|
|
23 syn keyword crmStatement fail fault goto hash intersect isolate input learn
|
|
24 syn keyword crmStatement liaf match output syscall trap union window
|
|
25
|
389
|
26 syn region crmRegex start='/' skip='\\/' end='/' contains=crmVariable
|
7
|
27
|
375
|
28 syn match crmLabel display '^\s*:[[:graph:]]\+:'
|
7
|
29
|
375
|
30 hi def link crmTodo Todo
|
|
31 hi def link crmComment Comment
|
|
32 hi def link crmVariable Identifier
|
|
33 hi def link crmSpecial SpecialChar
|
|
34 hi def link crmStatement Statement
|
|
35 hi def link crmRegex String
|
|
36 hi def link crmLabel Label
|
7
|
37
|
|
38 let b:current_syntax = "crm"
|
|
39
|
375
|
40 let &cpo = s:cpo_save
|
|
41 unlet s:cpo_save
|