Mercurial > vim
annotate runtime/syntax/mib.vim @ 7325:1f01f11cabc2
Added tag v7.4.967 for changeset a3b8a63c88ef9f90aee553bb31dc6bf1c669aa0f
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 11 Dec 2015 19:45:04 +0100 |
parents | b9e314fe473f |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2120
f63ace015c63
Updated runtime and language files.
Bram Moolenaar <bram@zimbu.org>
parents:
7
diff
changeset
|
2 " Language: Vim syntax file for SNMPv1 and SNMPv2 MIB and SMI files |
f63ace015c63
Updated runtime and language files.
Bram Moolenaar <bram@zimbu.org>
parents:
7
diff
changeset
|
3 " Maintainer: Martin Smat <msmat@post.cz> |
f63ace015c63
Updated runtime and language files.
Bram Moolenaar <bram@zimbu.org>
parents:
7
diff
changeset
|
4 " Original Author: David Pascoe <pascoedj@spamcop.net> |
f63ace015c63
Updated runtime and language files.
Bram Moolenaar <bram@zimbu.org>
parents:
7
diff
changeset
|
5 " Written: Wed Jan 28 14:37:23 GMT--8:00 1998 |
2152 | 6 " Last Changed: Mon Mar 23 2010 |
7 | 7 |
2120
f63ace015c63
Updated runtime and language files.
Bram Moolenaar <bram@zimbu.org>
parents:
7
diff
changeset
|
8 if exists("b:current_syntax") |
7 | 9 finish |
10 endif | |
11 | |
2152 | 12 setlocal iskeyword=@,48-57,_,128-167,224-235,- |
7 | 13 |
14 syn keyword mibImplicit ACCESS ANY AUGMENTS BEGIN BIT BITS BOOLEAN CHOICE | |
15 syn keyword mibImplicit COMPONENTS CONTACT-INFO DEFINITIONS DEFVAL | |
16 syn keyword mibImplicit DESCRIPTION DISPLAY-HINT END ENTERPRISE EXTERNAL FALSE | |
17 syn keyword mibImplicit FROM GROUP IMPLICIT IMPLIED IMPORTS INDEX | |
18 syn keyword mibImplicit LAST-UPDATED MANDATORY-GROUPS MAX-ACCESS | |
19 syn keyword mibImplicit MIN-ACCESS MODULE MODULE-COMPLIANCE MODULE-IDENTITY | |
20 syn keyword mibImplicit NOTIFICATION-GROUP NOTIFICATION-TYPE NOTIFICATIONS | |
21 syn keyword mibImplicit NULL OBJECT-GROUP OBJECT-IDENTITY OBJECT-TYPE | |
22 syn keyword mibImplicit OBJECTS OF OPTIONAL ORGANIZATION REFERENCE | |
23 syn keyword mibImplicit REVISION SEQUENCE SET SIZE STATUS SYNTAX | |
24 syn keyword mibImplicit TEXTUAL-CONVENTION TRAP-TYPE TRUE UNITS VARIABLES | |
2152 | 25 syn keyword mibImplicit WRITE-SYNTAX |
7 | 26 syn keyword mibValue accessible-for-notify current DisplayString |
27 syn keyword mibValue deprecated mandatory not-accessible obsolete optional | |
28 syn keyword mibValue read-create read-only read-write write-only INTEGER | |
29 syn keyword mibValue Counter Gauge IpAddress OCTET STRING experimental mib-2 | |
30 syn keyword mibValue TimeTicks RowStatus TruthValue UInteger32 snmpModules | |
31 syn keyword mibValue Integer32 Counter32 TestAndIncr TimeStamp InstancePointer | |
32 syn keyword mibValue OBJECT IDENTIFIER Gauge32 AutonomousType Counter64 | |
33 syn keyword mibValue PhysAddress TimeInterval MacAddress StorageType RowPointer | |
34 syn keyword mibValue TDomain TAddress ifIndex | |
35 | |
36 " Epilogue SMI extensions | |
37 syn keyword mibEpilogue FORCE-INCLUDE EXCLUDE cookie get-function set-function | |
38 syn keyword mibEpilogue test-function get-function-async set-function-async | |
39 syn keyword mibEpilogue test-function-async next-function next-function-async | |
40 syn keyword mibEpilogue leaf-name | |
41 syn keyword mibEpilogue DEFAULT contained | |
42 | |
2152 | 43 syn match mibOperator "::=" |
2120
f63ace015c63
Updated runtime and language files.
Bram Moolenaar <bram@zimbu.org>
parents:
7
diff
changeset
|
44 syn match mibComment "\ *--.\{-}\(--\|$\)" |
f63ace015c63
Updated runtime and language files.
Bram Moolenaar <bram@zimbu.org>
parents:
7
diff
changeset
|
45 syn match mibNumber "\<['0-9a-fA-FhH]*\>" |
7 | 46 syn region mibDescription start="\"" end="\"" contains=DEFAULT |
47 | |
2120
f63ace015c63
Updated runtime and language files.
Bram Moolenaar <bram@zimbu.org>
parents:
7
diff
changeset
|
48 hi def link mibImplicit Statement |
2152 | 49 hi def link mibOperator Statement |
2120
f63ace015c63
Updated runtime and language files.
Bram Moolenaar <bram@zimbu.org>
parents:
7
diff
changeset
|
50 hi def link mibComment Comment |
f63ace015c63
Updated runtime and language files.
Bram Moolenaar <bram@zimbu.org>
parents:
7
diff
changeset
|
51 hi def link mibConstants String |
f63ace015c63
Updated runtime and language files.
Bram Moolenaar <bram@zimbu.org>
parents:
7
diff
changeset
|
52 hi def link mibNumber Number |
f63ace015c63
Updated runtime and language files.
Bram Moolenaar <bram@zimbu.org>
parents:
7
diff
changeset
|
53 hi def link mibDescription Identifier |
f63ace015c63
Updated runtime and language files.
Bram Moolenaar <bram@zimbu.org>
parents:
7
diff
changeset
|
54 hi def link mibEpilogue SpecialChar |
f63ace015c63
Updated runtime and language files.
Bram Moolenaar <bram@zimbu.org>
parents:
7
diff
changeset
|
55 hi def link mibValue Structure |
7 | 56 |
57 let b:current_syntax = "mib" |