annotate runtime/syntax/mib.vim @ 1348:17a83c0532e8 v7.1.062

updated for version 7.1-062
author vimboss
date Sat, 11 Aug 2007 12:32:57 +0000
parents 3fc0f57ecb91
children f63ace015c63
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: Vim syntax file for SNMPv1 and SNMPv2 MIB and SMI files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Author: David Pascoe <pascoedj@spamcop.net>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Written: Wed Jan 28 14:37:23 GMT--8:00 1998
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Changed: Thu Feb 27 10:18:16 WST 2003
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 if version >= 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 setlocal iskeyword=@,48-57,_,128-167,224-235,-,:,=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 set iskeyword=@,48-57,_,128-167,224-235,-,:,=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword mibImplicit ACCESS ANY AUGMENTS BEGIN BIT BITS BOOLEAN CHOICE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword mibImplicit COMPONENTS CONTACT-INFO DEFINITIONS DEFVAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword mibImplicit DESCRIPTION DISPLAY-HINT END ENTERPRISE EXTERNAL FALSE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword mibImplicit FROM GROUP IMPLICIT IMPLIED IMPORTS INDEX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn keyword mibImplicit LAST-UPDATED MANDATORY-GROUPS MAX-ACCESS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword mibImplicit MIN-ACCESS MODULE MODULE-COMPLIANCE MODULE-IDENTITY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword mibImplicit NOTIFICATION-GROUP NOTIFICATION-TYPE NOTIFICATIONS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword mibImplicit NULL OBJECT-GROUP OBJECT-IDENTITY OBJECT-TYPE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword mibImplicit OBJECTS OF OPTIONAL ORGANIZATION REFERENCE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword mibImplicit REVISION SEQUENCE SET SIZE STATUS SYNTAX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword mibImplicit TEXTUAL-CONVENTION TRAP-TYPE TRUE UNITS VARIABLES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword mibImplicit WRITE-SYNTAX ::=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword mibValue accessible-for-notify current DisplayString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword mibValue deprecated mandatory not-accessible obsolete optional
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword mibValue read-create read-only read-write write-only INTEGER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn keyword mibValue Counter Gauge IpAddress OCTET STRING experimental mib-2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword mibValue TimeTicks RowStatus TruthValue UInteger32 snmpModules
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword mibValue Integer32 Counter32 TestAndIncr TimeStamp InstancePointer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword mibValue OBJECT IDENTIFIER Gauge32 AutonomousType Counter64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword mibValue PhysAddress TimeInterval MacAddress StorageType RowPointer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword mibValue TDomain TAddress ifIndex
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 " Epilogue SMI extensions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword mibEpilogue FORCE-INCLUDE EXCLUDE cookie get-function set-function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword mibEpilogue test-function get-function-async set-function-async
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword mibEpilogue test-function-async next-function next-function-async
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword mibEpilogue leaf-name
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword mibEpilogue DEFAULT contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn match mibComment "\ *--.*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match mibNumber "\<['0-9a-fA-FhH]*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn region mibDescription start="\"" end="\"" contains=DEFAULT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 " 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
57 if version >= 508 || !exists("did_mib_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 let did_mib_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 HiLink mibImplicit Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 HiLink mibComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 HiLink mibConstants String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 HiLink mibNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 HiLink mibDescription Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 HiLink mibEpilogue SpecialChar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 HiLink mibValue Structure
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 let b:current_syntax = "mib"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 " vim: ts=8