annotate runtime/syntax/cdl.vim @ 16464:9bb2192a7c95 v8.1.1236

patch 8.1.1236: sjiscorr.c not found in shadow directory commit https://github.com/vim/vim/commit/fe368edcc00f2294e43531f72c2569aaf5964821 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 29 20:30:54 2019 +0200 patch 8.1.1236: sjiscorr.c not found in shadow directory Problem: sjiscorr.c not found in shadow directory. (Tony Mechelynck) Solution: Link po/*.c files with "make shadow".
author Bram Moolenaar <Bram@vim.org>
date Mon, 29 Apr 2019 20:45:05 +0200
parents 584c835a2de1
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Comshare Dimension Definition Language
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Raul Segura Acevedo <raulseguraaceved@netscape.net>
10218
584c835a2de1 commit https://github.com/vim/vim/commit/50ba526fbf3e9e5e0e6b0b3086a4d5df581ebc7e
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
4 " Last change: 2016 Sep 20
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
6 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
7 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 sy case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 sy sync fromstart
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 sy keyword cdlStatement dimension hierarchy group grouphierarchy schedule class
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 sy keyword cdlType add update file category main altername removeall required notrequired
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 sy keyword cdlConditional if then elseif else endif and or not cons rpt xlt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 sy keyword cdlFunction ChildOf IChildOf LeafChildOf DescendantOf IDescendantOf LeafDescendantOf MemberIs CountOf
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 sy keyword cdlIdentifier contained id name desc description xlttype precision symbol curr_ name group_name rate_name
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 sy keyword cdlIdentifier contained xcheck endbal accounttype natsign consolidate formula pctown usage periodicity
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 sy match cdlIdentifier contained 'child\s*name'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 sy match cdlIdentifier contained 'parent\s*name'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 sy match cdlIdentifier contained 'grp\s*description'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 sy match cdlIdentifier contained 'grpchild\s*name'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 sy match cdlIdentifier contained 'grpparent\s*name'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 sy match cdlIdentifier contained 'preceding\s*member'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 sy match cdlIdentifier contained 'unit\s*name'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 sy match cdlIdentifier contained 'unit\s*id'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 sy match cdlIdentifier contained 'schedule\s*name'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 sy match cdlIdentifier contained 'schedule\s*id'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 sy match cdlString /\[[^]]*]/ contains=cdlRestricted,cdlNotSupported
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 sy match cdlRestricted contained /[&*,_]/
10218
584c835a2de1 commit https://github.com/vim/vim/commit/50ba526fbf3e9e5e0e6b0b3086a4d5df581ebc7e
Christian Brabandt <cb@256bit.org>
parents: 10051
diff changeset
33 " not supported
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 sy match cdlNotSupported contained /[:"!']/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 sy keyword cdlTodo contained TODO FIXME XXX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 sy cluster cdlCommentGroup contains=cdlTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 sy match cdlComment '//.*' contains=@cdlCommentGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 sy region cdlComment start="/\*" end="\*/" contains=@cdlCommentGroup fold
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 sy match cdlCommentE "\*/"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 sy region cdlParen transparent start='(' end=')' contains=ALLBUT,cdlParenE,cdlRestricted,cdlNotSupported
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 "sy region cdlParen transparent start='(' end=')' contains=cdlIdentifier,cdlComment,cdlParenWordE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 sy match cdlParenE ")"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 "sy match cdlParenWordE contained "\k\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 sy keyword cdlFxType allocation downfoot expr xltgain
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 "sy keyword cdlFxType contained allocation downfoot expr xltgain
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 "sy region cdlFx transparent start='\k\+(' end=')' contains=cdlConditional,cdlFunction,cdlString,cdlComment,cdlFxType
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 set foldmethod=expr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 set foldexpr=(getline(v:lnum+1)=~'{'\|\|getline(v:lnum)=~'//\\s\\*\\{5}.*table')?'>1':1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 %foldo!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 set foldmethod=manual
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 let b:match_words='\<if\>:\<then\>:\<elseif\>:\<else\>:\<endif\>'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
58 " Only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
60 hi def link cdlStatement Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
61 hi def link cdlType Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
62 hi def link cdlFxType Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
63 hi def link cdlIdentifier Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
64 hi def link cdlString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
65 hi def link cdlRestricted WarningMsg
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
66 hi def link cdlNotSupported ErrorMsg
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
67 hi def link cdlTodo Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
68 hi def link cdlComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
69 hi def link cdlCommentE ErrorMsg
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
70 hi def link cdlParenE ErrorMsg
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
71 hi def link cdlParenWordE ErrorMsg
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
72 hi def link cdlFunction Function
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
73 hi def link cdlConditional Conditional
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 let b:current_syntax = "cdl"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 " vim: ts=8