annotate runtime/syntax/mib.vim @ 36133:8c394230efed

runtime(spec): add file triggers to syntax script Commit: https://github.com/vim/vim/commit/2241f0845fcb2ff362f34abd756cedf239e50b55 Author: fundawang <fundawang@yeah.net> Date: Tue Sep 10 21:31:49 2024 +0200 runtime(spec): add file triggers to syntax script closes: https://github.com/vim/vim/issues/15569 Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 10 Sep 2024 21:45:04 +0200
parents b9e314fe473f
children
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
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
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2120
diff changeset
6 " Last Changed: Mon Mar 23 2010
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
2120
f63ace015c63 Updated runtime and language files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
8 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2120
diff changeset
12 setlocal iskeyword=@,48-57,_,128-167,224-235,-
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syn keyword mibImplicit ACCESS ANY AUGMENTS BEGIN BIT BITS BOOLEAN CHOICE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn keyword mibImplicit COMPONENTS CONTACT-INFO DEFINITIONS DEFVAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn keyword mibImplicit DESCRIPTION DISPLAY-HINT END ENTERPRISE EXTERNAL FALSE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn keyword mibImplicit FROM GROUP IMPLICIT IMPLIED IMPORTS INDEX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword mibImplicit LAST-UPDATED MANDATORY-GROUPS MAX-ACCESS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn keyword mibImplicit MIN-ACCESS MODULE MODULE-COMPLIANCE MODULE-IDENTITY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword mibImplicit NOTIFICATION-GROUP NOTIFICATION-TYPE NOTIFICATIONS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword mibImplicit NULL OBJECT-GROUP OBJECT-IDENTITY OBJECT-TYPE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn keyword mibImplicit OBJECTS OF OPTIONAL ORGANIZATION REFERENCE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn keyword mibImplicit REVISION SEQUENCE SET SIZE STATUS SYNTAX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword mibImplicit TEXTUAL-CONVENTION TRAP-TYPE TRUE UNITS VARIABLES
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2120
diff changeset
25 syn keyword mibImplicit WRITE-SYNTAX
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn keyword mibValue accessible-for-notify current DisplayString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn keyword mibValue deprecated mandatory not-accessible obsolete optional
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword mibValue read-create read-only read-write write-only INTEGER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword mibValue Counter Gauge IpAddress OCTET STRING experimental mib-2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword mibValue TimeTicks RowStatus TruthValue UInteger32 snmpModules
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword mibValue Integer32 Counter32 TestAndIncr TimeStamp InstancePointer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword mibValue OBJECT IDENTIFIER Gauge32 AutonomousType Counter64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword mibValue PhysAddress TimeInterval MacAddress StorageType RowPointer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword mibValue TDomain TAddress ifIndex
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " Epilogue SMI extensions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword mibEpilogue FORCE-INCLUDE EXCLUDE cookie get-function set-function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn keyword mibEpilogue test-function get-function-async set-function-async
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword mibEpilogue test-function-async next-function next-function-async
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword mibEpilogue leaf-name
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword mibEpilogue DEFAULT contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2120
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn region mibDescription start="\"" end="\"" contains=DEFAULT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
2120
f63ace015c63 Updated runtime and language files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
48 hi def link mibImplicit Statement
2152
b9e314fe473f Updated runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 2120
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 let b:current_syntax = "mib"