-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy path_cds.vim
26 lines (21 loc) · 1.17 KB
/
_cds.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
if exists("b:current_syntax")
finish
endif
syntax match cdsComment "\v\/\/.*$"
syntax region cdsComment start="\v/\*" end="\v\*/"
syntax match cdsOtherStuff /=/
syntax match cdsAnnotation /\v\@\S*/
syntax match supportClassCds /\v(<|>)(Association to (one|many|)|Composition of (one|many|)|Boolean|Date|Time|DateTime|Timestamp|Number|Integer|Decimal|String)(<|>)/
syntax match keywordStrongCds /\v(<|>)(key|as|on|with|namespace|import|using|define|extend|annotate|expose|context|service|abstract|aspect|entity|projection|view|event|type|facet|annotation|actions|action|function)(<|>)/
syntax match keywordStrongControlCds /\v(<|>)from(<|>)/
syntax region stringQuotedSingleCds start="\v'" end="\v'"
syntax region stringQuotedDoubleCds start="\v\"" end="\v\""
highlight link keywordStrongCds Keyword
highlight link keywordStrongControlCds Keyword
highlight link cdsOtherStuff Keyword
highlight link cdsComment Comment
highlight link stringQuotedSingleCds String
highlight link stringQuotedDoubleCds String
highlight link supportClassCds Constant
highlight link cdsAnnotation Function
let b:curent_syntax = "cds"