annotate runtime/syntax/asn.vim @ 3830:04592728474a

Updated runtime files.
author Bram Moolenaar <bram@vim.org>
date Fri, 21 Sep 2012 14:54:30 +0200
parents 3fc0f57ecb91
children aa51675adf7e
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: ASN.1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Claudio Fleiner <claudio@fleiner.com>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " URL: http://www.fleiner.com/vim/syntax/asn.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: 2001 Apr 26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " keyword definitions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn keyword asnExternal DEFINITIONS BEGIN END IMPORTS EXPORTS FROM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match asnExternal "\<IMPLICIT\s\+TAGS\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match asnExternal "\<EXPLICIT\s\+TAGS\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn keyword asnFieldOption DEFAULT OPTIONAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword asnTagModifier IMPLICIT EXPLICIT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword asnTypeInfo ABSENT PRESENT SIZE UNIVERSAL APPLICATION PRIVATE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword asnBoolValue TRUE FALSE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword asnNumber MIN MAX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match asnNumber "\<PLUS-INFINITY\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match asnNumber "\<MINUS-INFINITY\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword asnType INTEGER REAL STRING BIT BOOLEAN OCTET NULL EMBEDDED PDV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword asnType BMPString IA5String TeletexString GeneralString GraphicString ISO646String NumericString PrintableString T61String UniversalString VideotexString VisibleString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword asnType ANY DEFINED
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match asnType "\.\.\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match asnType "OBJECT\s\+IDENTIFIER"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match asnType "TYPE-IDENTIFIER"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword asnType UTF8String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword asnStructure CHOICE SEQUENCE SET OF ENUMERATED CONSTRAINED BY WITH COMPONENTS CLASS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " Strings and constants
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match asnSpecial contained "\\\d\d\d\|\\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn region asnString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=asnSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match asnCharacter "'[^\\]'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match asnSpecialCharacter "'\\.'"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match asnNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match asnLineComment "--.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match asnLineComment "--.*--"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match asnDefinition "^\s*[a-zA-Z][-a-zA-Z0-9_.\[\] \t{}]* *::="me=e-3 contains=asnType
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match asnBraces "[{}]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn sync ccomment asnComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 if version >= 508 || !exists("did_asn_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 let did_asn_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 HiLink asnDefinition Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 HiLink asnBraces Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 HiLink asnStructure Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 HiLink asnBoolValue Boolean
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 HiLink asnSpecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 HiLink asnString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 HiLink asnCharacter Character
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 HiLink asnSpecialCharacter asnSpecial
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 HiLink asnNumber asnValue
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 HiLink asnComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 HiLink asnLineComment asnComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 HiLink asnType Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 HiLink asnTypeInfo PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 HiLink asnValue Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 HiLink asnExternal Include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 HiLink asnTagModifier Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 HiLink asnFieldOption Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 let b:current_syntax = "asn"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 " vim: ts=8