home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / runtime / dos / syntax / mib.vim < prev    next >
Encoding:
Text File  |  2010-08-15  |  2.7 KB  |  58 lines

  1. " Vim syntax file
  2. " Language:        Vim syntax file for SNMPv1 and SNMPv2 MIB and SMI files
  3. " Maintainer:      Martin Smat <msmat@post.cz>
  4. " Original Author: David Pascoe <pascoedj@spamcop.net>
  5. " Written:            Wed Jan 28 14:37:23 GMT--8:00 1998
  6. " Last Changed:    Mon Mar 23 2010
  7.  
  8. if exists("b:current_syntax")
  9.   finish
  10. endif
  11.  
  12. setlocal iskeyword=@,48-57,_,128-167,224-235,-
  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
  25. syn keyword mibImplicit WRITE-SYNTAX
  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.  
  43. syn match  mibOperator  "::="
  44. syn match  mibComment   "\ *--.\{-}\(--\|$\)"
  45. syn match  mibNumber    "\<['0-9a-fA-FhH]*\>"
  46. syn region mibDescription start="\"" end="\"" contains=DEFAULT
  47.  
  48. hi def link mibImplicit         Statement
  49. hi def link mibOperator      Statement
  50. hi def link mibComment       Comment
  51. hi def link mibConstants     String
  52. hi def link mibNumber        Number
  53. hi def link mibDescription   Identifier
  54. hi def link mibEpilogue         SpecialChar
  55. hi def link mibValue         Structure
  56.  
  57. let b:current_syntax = "mib"
  58.