📄 asn.vim
字号:
" Vim syntax file" Language: ASN.1" Maintainer: Claudio Fleiner <claudio@fleiner.com>" URL: http://www.fleiner.com/vim/syntax/asn.vim" Last Change: 2001 Apr 26" For version 5.x: Clear all syntax items" For version 6.x: Quit when a syntax file was already loadedif version < 600 syntax clearelseif exists("b:current_syntax") finishendif" keyword definitionssyn keyword asnExternal DEFINITIONS BEGIN END IMPORTS EXPORTS FROMsyn match asnExternal "\<IMPLICIT\s\+TAGS\>"syn match asnExternal "\<EXPLICIT\s\+TAGS\>"syn keyword asnFieldOption DEFAULT OPTIONALsyn keyword asnTagModifier IMPLICIT EXPLICITsyn keyword asnTypeInfo ABSENT PRESENT SIZE UNIVERSAL APPLICATION PRIVATEsyn keyword asnBoolValue TRUE FALSEsyn keyword asnNumber MIN MAXsyn match asnNumber "\<PLUS-INFINITY\>"syn match asnNumber "\<MINUS-INFINITY\>"syn keyword asnType INTEGER REAL STRING BIT BOOLEAN OCTET NULL EMBEDDED PDVsyn keyword asnType BMPString IA5String TeletexString GeneralString GraphicString ISO646String NumericString PrintableString T61String UniversalString VideotexString VisibleStringsyn keyword asnType ANY DEFINEDsyn match asnType "\.\.\."syn match asnType "OBJECT\s\+IDENTIFIER"syn match asnType "TYPE-IDENTIFIER"syn keyword asnType UTF8Stringsyn keyword asnStructure CHOICE SEQUENCE SET OF ENUMERATED CONSTRAINED BY WITH COMPONENTS CLASS" Strings and constantssyn match asnSpecial contained "\\\d\d\d\|\\."syn region asnString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=asnSpecialsyn match asnCharacter "'[^\\]'"syn match asnSpecialCharacter "'\\.'"syn match asnNumber "-\=\<\d\+L\=\>\|0[xX][0-9a-fA-F]\+\>"syn match asnLineComment "--.*"syn match asnLineComment "--.*--"syn match asnDefinition "^\s*[a-zA-Z][-a-zA-Z0-9_.\[\] \t{}]* *::="me=e-3 contains=asnTypesyn match asnBraces "[{}]"syn sync ccomment asnComment" Define the default highlighting." For version 5.7 and earlier: only when not done already" For version 5.8 and later: only when an item doesn't have highlighting yetif version >= 508 || !exists("did_asn_syn_inits") if version < 508 let did_asn_syn_inits = 1 command -nargs=+ HiLink hi link <args> else command -nargs=+ HiLink hi def link <args> endif HiLink asnDefinition Function HiLink asnBraces Function HiLink asnStructure Statement HiLink asnBoolValue Boolean HiLink asnSpecial Special HiLink asnString String HiLink asnCharacter Character HiLink asnSpecialCharacter asnSpecial HiLink asnNumber asnValue HiLink asnComment Comment HiLink asnLineComment asnComment HiLink asnType Type HiLink asnTypeInfo PreProc HiLink asnValue Number HiLink asnExternal Include HiLink asnTagModifier Function HiLink asnFieldOption Type delcommand HiLinkendiflet b:current_syntax = "asn"" vim: ts=8
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -