annotate runtime/syntax/crm.vim @ 19509:17f0d6dc6a73 v8.2.0312

patch 8.2.0312: Vim9: insufficient script tests Commit: https://github.com/vim/vim/commit/f2d5c240a56853c0bbbc7979e9bff095de6c73ec Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 23 21:25:54 2020 +0100 patch 8.2.0312: Vim9: insufficient script tests Problem: Vim9: insufficient script tests. Solution: Add more tests. Make "import * as Name" work.
author Bram Moolenaar <Bram@vim.org>
date Sun, 23 Feb 2020 21:30:03 +0100
parents 1218c5353e2b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
2 " Language: CRM114
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 839
diff changeset
4 " Latest Revision: 2006-04-19
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
6 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
10 let s:cpo_save = &cpo
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
11 set cpo&vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
13 syn keyword crmTodo contained TODO FIXME XXX NOTE
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
15 syn region crmComment display oneline start='#' end='\\#'
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
16 \ contains=crmTodo,@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
18 syn match crmVariable display ':[*#@]:[^:]\{-1,}:'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
20 syn match crmSpecial display '\\\%(x\x\x\|o\o\o\o\|[]nrtabvf0>)};/\\]\)'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
22 syn keyword crmStatement insert noop accept alius alter classify eval exit
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
23 syn keyword crmStatement fail fault goto hash intersect isolate input learn
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
24 syn keyword crmStatement liaf match output syscall trap union window
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
25
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
26 syn region crmRegex start='/' skip='\\/' end='/' contains=crmVariable
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
28 syn match crmLabel display '^\s*:[[:graph:]]\+:'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
30 hi def link crmTodo Todo
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
31 hi def link crmComment Comment
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
32 hi def link crmVariable Identifier
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
33 hi def link crmSpecial SpecialChar
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
34 hi def link crmStatement Statement
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
35 hi def link crmRegex String
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
36 hi def link crmLabel Label
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 let b:current_syntax = "crm"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
40 let &cpo = s:cpo_save
f14cbd913415 updated for version 7.0097
vimboss
parents: 7
diff changeset
41 unlet s:cpo_save