neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

crm.vim (1197B)


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