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