codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: ASN.13" Maintainer: Claudio Fleiner <claudio@fleiner.com>4" URL: http://www.fleiner.com/vim/syntax/asn.vim5" Last Change: 2012 Oct 056 7" quit when a syntax file was already loaded8if exists("b:current_syntax")9 finish10endif11 12let s:cpo_save = &cpo13set cpo&vim14 15" keyword definitions16syn keyword asnExternal DEFINITIONS BEGIN END IMPORTS EXPORTS FROM17syn match asnExternal "\<IMPLICIT\s\+TAGS\>"18syn match asnExternal "\<EXPLICIT\s\+TAGS\>"19syn keyword asnFieldOption DEFAULT OPTIONAL20syn keyword asnTagModifier IMPLICIT EXPLICIT21syn keyword asnTypeInfo ABSENT PRESENT SIZE UNIVERSAL APPLICATION PRIVATE22syn keyword asnBoolValue TRUE FALSE23syn keyword asnNumber MIN MAX24syn match asnNumber "\<PLUS-INFINITY\>"25syn match asnNumber "\<MINUS-INFINITY\>"26syn keyword asnType INTEGER REAL STRING BIT BOOLEAN OCTET NULL EMBEDDED PDV27syn keyword asnType BMPString IA5String TeletexString GeneralString GraphicString ISO646String NumericString PrintableString T61String UniversalString VideotexString VisibleString28syn keyword asnType ANY DEFINED29syn match asnType "\.\.\."30syn match asnType "OBJECT\s\+IDENTIFIER"31syn match asnType "TYPE-IDENTIFIER"32syn keyword asnType UTF8String33syn keyword asnStructure CHOICE SEQUENCE SET OF ENUMERATED CONSTRAINED BY WITH COMPONENTS CLASS34 35" Strings and constants36syn match asnSpecial contained "\\\d\d\d\|\\."37syn region asnString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=asnSpecial38syn match asnCharacter "'[^\\]'"39syn match asnSpecialCharacter "'\\.'"40syn match asnNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"41syn match asnLineComment "--.*"42syn match asnLineComment "--.*--"43 44syn match asnDefinition "^\s*[a-zA-Z][-a-zA-Z0-9_.\[\] \t{}]* *::="me=e-3 contains=asnType45syn match asnBraces "[{}]"46 47syn sync ccomment asnComment48 49" Define the default highlighting.50" Only when an item doesn't have highlighting yet51hi def link asnDefinition Function52hi def link asnBraces Function53hi def link asnStructure Statement54hi def link asnBoolValue Boolean55hi def link asnSpecial Special56hi def link asnString String57hi def link asnCharacter Character58hi def link asnSpecialCharacter asnSpecial59hi def link asnNumber asnValue60hi def link asnComment Comment61hi def link asnLineComment asnComment62hi def link asnType Type63hi def link asnTypeInfo PreProc64hi def link asnValue Number65hi def link asnExternal Include66hi def link asnTagModifier Function67hi def link asnFieldOption Type68 69let &cpo = s:cpo_save70unlet s:cpo_save71let b:current_syntax = "asn"72 73" vim: ts=874 