summaryrefslogtreecommitdiff
path: root/runtime/syntax/crm.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-06-29 22:40:58 +0000
committerBram Moolenaar <Bram@vim.org>2005-06-29 22:40:58 +0000
commit42eeac3552c5a5ea10f24373f76b93633b6c8604 (patch)
tree902f3158470a3e9c53850708cf982c85c6338796 /runtime/syntax/crm.vim
parent24bbcfe8fe62ea43b1cea86243be4fdc8794140b (diff)
downloadvim-git-42eeac3552c5a5ea10f24373f76b93633b6c8604.tar.gz
updated for version 7.0097v7.0097
Diffstat (limited to 'runtime/syntax/crm.vim')
-rw-r--r--runtime/syntax/crm.vim89
1 files changed, 35 insertions, 54 deletions
diff --git a/runtime/syntax/crm.vim b/runtime/syntax/crm.vim
index 4a1e3bc41..fdb15046e 100644
--- a/runtime/syntax/crm.vim
+++ b/runtime/syntax/crm.vim
@@ -1,61 +1,42 @@
" Vim syntax file
-" Language: CRM114
-" Maintainer: Nikolai Weibull <source@pcppopper.org>
-" URL: http://www.pcppopper.org/vim/syntax/pcp/crm/
-" Latest Revision: 2004-05-22
-" arch-tag: a3d3eaaf-4700-44ff-b332-f6c42c036883
-
-if version < 600
- syntax clear
-elseif exists("b:current_syntax")
+" Language: CRM114
+" Maintainer: Nikolai Weibull <nikolai+work.vim@bitwi.se>
+" Latest Revision: 2005-06-27
+
+if exists("b:current_syntax")
finish
endif
-" Todo
-syn keyword crmTodo contained TODO FIXME XXX NOTE
-
-" Comments
-syn region crmComment matchgroup=crmComment start='#' end='$' end='\\#' contains=crmTodo
-
-" Variables
-syn match crmVariable ':[*#@]:[^:]\{-1,}:'
-
-" Special Characters
-syn match crmSpecial '\\\%(x\x\x\|o\o\o\o\|[]nrtabvf0>)};/\\]\)'
-
-" Statements
-syn keyword crmStatement insert noop accept alius alter classify eval exit
-syn keyword crmStatement fail fault goto hash intersect isolate input learn
-syn keyword crmStatement liaf match output syscall trap union window
-
-" Regexes
-syn region crmRegex matchgroup=crmRegex start='/' skip='\\/' end='/' contains=crmVariable
-
-" Labels
-syn match crmLabel '^\s*:[[:graph:]]\+:'
-
-" Define the default highlighting.
-" For version 5.7 and earlier: only when not done already
-" For version 5.8 and later: only when an item doesn't have highlighting yet
-if version >= 508 || !exists("did_crm_syn_inits")
- if version < 508
- let did_crm_syn_inits = 1
- command -nargs=+ HiLink hi link <args>
- else
- command -nargs=+ HiLink hi def link <args>
- endif
-
- HiLink crmTodo Todo
- HiLink crmComment Comment
- HiLink crmVariable Identifier
- HiLink crmSpecial SpecialChar
- HiLink crmStatement Statement
- HiLink crmRegex String
- HiLink crmLabel Label
-
- delcommand HiLink
-endif
+let s:cpo_save = &cpo
+set cpo&vim
+
+syn keyword crmTodo contained TODO FIXME XXX NOTE
+
+syn region crmComment matchgroup=crmComment start='#' end='$' end='\\#'
+ \ contains=crmTodo,@Spell
+
+syn match crmVariable display ':[*#@]:[^:]\{-1,}:'
+
+syn match crmSpecial display '\\\%(x\x\x\|o\o\o\o\|[]nrtabvf0>)};/\\]\)'
+
+syn keyword crmStatement insert noop accept alius alter classify eval exit
+syn keyword crmStatement fail fault goto hash intersect isolate input learn
+syn keyword crmStatement liaf match output syscall trap union window
+
+syn region crmRegex matchgroup=crmRegex start='/' skip='\\/' end='/'
+ \ contains=crmVariable
+
+syn match crmLabel display '^\s*:[[:graph:]]\+:'
+
+hi def link crmTodo Todo
+hi def link crmComment Comment
+hi def link crmVariable Identifier
+hi def link crmSpecial SpecialChar
+hi def link crmStatement Statement
+hi def link crmRegex String
+hi def link crmLabel Label
let b:current_syntax = "crm"
-" vim: set sts=2 sw=2:
+let &cpo = s:cpo_save
+unlet s:cpo_save