Merge branch 'vim-with-runtime' into feat/quickfix-title
[vim_extended.git] / runtime / syntax / crm.vim
blob17b67d44f0a746d9c10567646709d81522ea2d4b
1 " Vim syntax file
2 " Language:         CRM114
3 " Maintainer:       Nikolai Weibull <now@bitwi.se>
4 " Latest Revision:  2006-04-19
6 if exists("b:current_syntax")
7   finish
8 endif
10 let s:cpo_save = &cpo
11 set cpo&vim
13 syn keyword crmTodo       contained TODO FIXME XXX NOTE
15 syn region  crmComment    display oneline start='#' end='\\#'
16                           \ contains=crmTodo,@Spell
18 syn match   crmVariable   display ':[*#@]:[^:]\{-1,}:'
20 syn match   crmSpecial    display '\\\%(x\x\x\|o\o\o\o\|[]nrtabvf0>)};/\\]\)'
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
26 syn region  crmRegex      start='/' skip='\\/' end='/' contains=crmVariable
28 syn match   crmLabel      display '^\s*:[[:graph:]]\+:'
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
38 let b:current_syntax = "crm"
40 let &cpo = s:cpo_save
41 unlet s:cpo_save