Mercurial > vim
annotate runtime/syntax/asn.vim @ 10048:43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 30 23:26:57 2016 +0200
Updated runtime files. Remove version checks for Vim older than 6.0.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 30 Aug 2016 23:30:09 +0200 |
parents | aa51675adf7e |
children | 46763b01cd9a |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: ASN.1 | |
3 " Maintainer: Claudio Fleiner <claudio@fleiner.com> | |
4 " URL: http://www.fleiner.com/vim/syntax/asn.vim | |
3854 | 5 " Last Change: 2012 Oct 05 |
7 | 6 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
7 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
8 if exists("b:current_syntax") |
7 | 9 finish |
10 endif | |
11 | |
3854 | 12 let s:cpo_save = &cpo |
13 set cpo&vim | |
14 | |
7 | 15 " keyword definitions |
16 syn keyword asnExternal DEFINITIONS BEGIN END IMPORTS EXPORTS FROM | |
17 syn match asnExternal "\<IMPLICIT\s\+TAGS\>" | |
18 syn match asnExternal "\<EXPLICIT\s\+TAGS\>" | |
19 syn keyword asnFieldOption DEFAULT OPTIONAL | |
20 syn keyword asnTagModifier IMPLICIT EXPLICIT | |
21 syn keyword asnTypeInfo ABSENT PRESENT SIZE UNIVERSAL APPLICATION PRIVATE | |
22 syn keyword asnBoolValue TRUE FALSE | |
23 syn keyword asnNumber MIN MAX | |
24 syn match asnNumber "\<PLUS-INFINITY\>" | |
25 syn match asnNumber "\<MINUS-INFINITY\>" | |
26 syn keyword asnType INTEGER REAL STRING BIT BOOLEAN OCTET NULL EMBEDDED PDV | |
27 syn keyword asnType BMPString IA5String TeletexString GeneralString GraphicString ISO646String NumericString PrintableString T61String UniversalString VideotexString VisibleString | |
28 syn keyword asnType ANY DEFINED | |
29 syn match asnType "\.\.\." | |
30 syn match asnType "OBJECT\s\+IDENTIFIER" | |
31 syn match asnType "TYPE-IDENTIFIER" | |
32 syn keyword asnType UTF8String | |
33 syn keyword asnStructure CHOICE SEQUENCE SET OF ENUMERATED CONSTRAINED BY WITH COMPONENTS CLASS | |
34 | |
35 " Strings and constants | |
36 syn match asnSpecial contained "\\\d\d\d\|\\." | |
37 syn region asnString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=asnSpecial | |
38 syn match asnCharacter "'[^\\]'" | |
39 syn match asnSpecialCharacter "'\\.'" | |
40 syn match asnNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>" | |
41 syn match asnLineComment "--.*" | |
42 syn match asnLineComment "--.*--" | |
43 | |
44 syn match asnDefinition "^\s*[a-zA-Z][-a-zA-Z0-9_.\[\] \t{}]* *::="me=e-3 contains=asnType | |
45 syn match asnBraces "[{}]" | |
46 | |
47 syn sync ccomment asnComment | |
48 | |
49 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
50 " Only when an item doesn't have highlighting yet |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
51 command -nargs=+ HiLink hi def link <args> |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
52 HiLink asnDefinition Function |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
53 HiLink asnBraces Function |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
54 HiLink asnStructure Statement |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
55 HiLink asnBoolValue Boolean |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
56 HiLink asnSpecial Special |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
57 HiLink asnString String |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
58 HiLink asnCharacter Character |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
59 HiLink asnSpecialCharacter asnSpecial |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
60 HiLink asnNumber asnValue |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
61 HiLink asnComment Comment |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
62 HiLink asnLineComment asnComment |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
63 HiLink asnType Type |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
64 HiLink asnTypeInfo PreProc |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
65 HiLink asnValue Number |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
66 HiLink asnExternal Include |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
67 HiLink asnTagModifier Function |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
68 HiLink asnFieldOption Type |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3854
diff
changeset
|
69 delcommand HiLink |
7 | 70 |
3854 | 71 let &cpo = s:cpo_save |
72 unlet s:cpo_save | |
7 | 73 let b:current_syntax = "asn" |
74 | |
75 " vim: ts=8 |