1
0
Fork 0
mirror of https://github.com/vim/vim synced 2025-03-18 07:47:09 +01:00
vim/runtime/syntax/crm.vim

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.2 KiB
VimL
Raw Permalink Normal View History

2004-06-13 20:20:40 +00:00
" Vim syntax file
2017-03-05 17:04:09 +01:00
" Language: CRM114
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
" Latest Revision: 2006-04-19
2005-06-29 22:40:58 +00:00
if exists("b:current_syntax")
2004-06-13 20:20:40 +00:00
finish
endif
2005-06-29 22:40:58 +00:00
let s:cpo_save = &cpo
set cpo&vim
syn keyword crmTodo contained TODO FIXME XXX NOTE
2005-07-04 22:49:24 +00:00
syn region crmComment display oneline start='#' end='\\#'
2005-06-29 22:40:58 +00:00
\ 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
2005-07-04 22:49:24 +00:00
syn region crmRegex start='/' skip='\\/' end='/' contains=crmVariable
2005-06-29 22:40:58 +00:00
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
2004-06-13 20:20:40 +00:00
let b:current_syntax = "crm"
2005-06-29 22:40:58 +00:00
let &cpo = s:cpo_save
unlet s:cpo_save