⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aspvbs.vim

📁 MSYS在windows下模拟了一个类unix的终端
💻 VIM
字号:
" Vim syntax file" Language:	Microsoft VBScript Web Content (ASP)" Maintainer:	Devin Weaver <ktohg@tritarget.com>" URL:		http://tritarget.com/pub/vim/syntax/aspvbs.vim" Last Change:	2001 May 10" Quit when a syntax file was already loadedif version < 600  syn clearelseif exists("b:current_syntax")  finishendifif !exists("main_syntax")  let main_syntax = 'aspvbs'endifif version < 600  source <sfile>:p:h/html.vimelse  runtime! syntax/html.vimendifunlet b:current_syntaxsyn cluster htmlPreProc add=AspVBScriptInsideHtmlTags" Functions and methods that are in VB but will cause errors in an ASP page" This is helpfull if your porting VB code to ASP" I removed (Count, Item) because these are common variable names in AspVBScriptsyn keyword AspVBSError contained Val Str CVar CVDate DoEvents GoSub Return GoTosyn keyword AspVBSError contained Date Time Timer Stop LinkExecutesyn keyword AspVBSError contained Add With Type LinkPokesyn keyword AspVBSError contained LinkRequest LinkSend Declare New Optional Sleepsyn keyword AspVBSError contained ParamArray Static Erl TypeOf Like LSet RSet Mid StrConv" It may seem that most of these can fit into a keyword clause but keyword takes" priority over all so I can't get the multi-word matchessyn match AspVBSError contained "\<Def[a-zA-Z0-9_]\+\>"syn match AspVBSError contained "^\s*Open"syn match AspVBSError contained "Debug\.[a-zA-Z0-9_]*"syn match AspVBSError contained "^\s*[a-zA-Z0-9_]\+:"syn match AspVBSError contained "[a-zA-Z0-9_]\+![a-zA-Z0-9_]\+"syn match AspVBSError contained "^\s*#.*$"syn match AspVBSError contained "\<As\s\+[a-zA-Z0-9_]*"syn match AspVBSError contained "\<End\>\|\<Exit\>"syn match AspVBSError contained "\<On\s\+Error\>\|\<On\>\|\<Error\>\|\<Resume\s\+Next\>\|\<Resume\>"syn match AspVBSError contained "\<Option\s\+\(Base\|Compare\|Private\s\+Module\)\>"syn match AspVBSError contained "\<Property\s\+\(Get\|Let\|Set\)\>"" AspVBScript Reserved Words.syn match AspVBSStatement contained "\<On\s\+Error\s\+\(Resume\s\+Next\|goto\s\+0\)\>\|\<Next\>"syn match AspVBSStatement contained "\<End\s\+\(If\|For\|Select\|Function\|Sub\)\>"syn match AspVBSStatement contained "\<Exit\s\+\(Do\|For\|Sub\|Function\)\>"syn match AspVBSStatement contained "\<Option\s\+Explicit\>"syn match AspVBSStatement contained "\<For\s\+Each\>\|\<For\>"syn match AspVBSStatement contained "\<Set\>"syn keyword AspVBSStatement contained Call Const Dim Do Loop Erase Andsyn keyword AspVBSStatement contained Function If Then Else ElseIf Orsyn keyword AspVBSStatement contained Private Public Randomize ReDimsyn keyword AspVBSStatement contained Select Case Sub While Wend Not" AspVBScript Functionssyn keyword AspVBSFunction contained Abs Array Asc Atn CBool CByte CCur CDate CDblsyn keyword AspVBSFunction contained Chr CInt CLng Cos CreateObject CSng CStr Datesyn keyword AspVBSFunction contained DateAdd DateDiff DatePart DateSerial DateValuesyn keyword AspVBSFunction contained Day Exp Filter Fix FormatCurrencysyn keyword AspVBSFunction contained FormatDateTime FormatNumber FormatPercentsyn keyword AspVBSFunction contained GetObject Hex Hour InputBox InStr InStrRev Intsyn keyword AspVBSFunction contained IsArray IsDate IsEmpty IsNull IsNumericsyn keyword AspVBSFunction contained IsObject Join LBound LCase Left Len LoadPicturesyn keyword AspVBSFunction contained Log LTrim Mid Minute Month MonthName MsgBox Nowsyn keyword AspVBSFunction contained Oct Replace RGB Right Rnd Round RTrimsyn keyword AspVBSFunction contained ScriptEngine ScriptEngineBuildVersionsyn keyword AspVBSFunction contained ScriptEngineMajorVersionsyn keyword AspVBSFunction contained ScriptEngineMinorVersion Second Sgn Sin Spacesyn keyword AspVBSFunction contained Split Sqr StrComp StrReverse String Tan Timesyn keyword AspVBSFunction contained TimeSerial TimeValue Trim TypeName UBound UCasesyn keyword AspVBSFunction contained VarType Weekday WeekdayName Year" AspVBScript Methodssyn keyword AspVBSMethods contained Add AddFolders BuildPath Clear Close Copysyn keyword AspVBSMethods contained CopyFile CopyFolder CreateFolder CreateTextFilesyn keyword AspVBSMethods contained Delete DeleteFile DeleteFolder DriveExistssyn keyword AspVBSMethods contained Exists FileExists FolderExistssyn keyword AspVBSMethods contained GetAbsolutePathName GetBaseName GetDrivesyn keyword AspVBSMethods contained GetDriveName GetExtensionName GetFilesyn keyword AspVBSMethods contained GetFileName GetFolder GetParentFolderNamesyn keyword AspVBSMethods contained GetSpecialFolder GetTempName Items Keys Movesyn keyword AspVBSMethods contained MoveFile MoveFolder OpenAsTextStreamsyn keyword AspVBSMethods contained OpenTextFile Raise Read ReadAll ReadLine Removesyn keyword AspVBSMethods contained RemoveAll Skip SkipLine Write WriteBlankLinessyn keyword AspVBSMethods contained WriteLine" AspVBScript Number Contstants" Integer number, or floating point number without a dot.syn match  AspVBSNumber	contained	"\<\d\+\>"" Floating point number, with dotsyn match  AspVBSNumber	contained	"\<\d\+\.\d*\>"" Floating point number, starting with a dotsyn match  AspVBSNumber	contained	"\.\d\+\>"" String and Character Contstants" removed (skip=+\\\\\|\\"+) because VB doesn't have backslash escaping in" strings (or does it?)syn region  AspVBSString	contained	  start=+"+  end=+"+ keepend" AspVBScript Commentssyn region  AspVBSComment	contained start="^REM\s\|\sREM\s" end="$" contains=AspVBSTodo keependsyn region  AspVBSComment   contained start="^'\|\s'"   end="$" contains=AspVBSTodo keepend" misc. Commenting Stuffsyn keyword AspVBSTodo contained	TODO FIXME" Cosmetic syntax errors commanly found in VB but not in AspVBScript" AspVBScript doesn't use line numberssyn region  AspVBSError	contained start="^\d" end="\s" keepend" AspVBScript also doesn't have type defining variablessyn match   AspVBSError  contained "[a-zA-Z0-9_][\$&!#]"ms=s+1" Since 'a%' is a VB variable with a type and in AspVBScript you can have 'a%>'" I have to make a special case so 'a%>' won't show as an error.syn match   AspVBSError  contained "[a-zA-Z0-9_]%\($\|[^>]\)"ms=s+1" Top Clustersyn cluster AspVBScriptTop contains=AspVBSStatement,AspVBSFunction,AspVBSMethods,AspVBSNumber,AspVBSString,AspVBSComment,AspVBSError" Define AspVBScript delimeters" <%= func("string_with_%>_in_it") %> This is illegal in ASP syntax.syn region  AspVBScriptInsideHtmlTags keepend matchgroup=Delimiter start=+<%=\=+ end=+%>+ contains=@AspVBScriptTopsyn region  AspVBScriptInsideHtmlTags keepend matchgroup=Delimiter start=+<script\s\+language="\=vbscript"\=[^>]*\s\+runatserver[^>]*>+ end=+</script>+ contains=@AspVBScriptTop" Synchronizationsyn sync match AspVBSSyncGroup grouphere AspVBScriptInsideHtmlTags "<%"" This is a kludge so the HTML will sync properlysyn sync match htmlHighlight groupthere htmlTag "%>"" 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_aspvbs_syn_inits")  if version < 508    let did_aspvbs_syn_inits = 1    command -nargs=+ HiLink hi link <args>  else    command -nargs=+ HiLink hi def link <args>  endif  "HiLink AspVBScript	Special  HiLink AspVBSLineNumber	Comment  HiLink AspVBSNumber	Number  HiLink AspVBSError		Error  HiLink AspVBSStatement	Statement  HiLink AspVBSString	String  HiLink AspVBSComment	Comment  HiLink AspVBSTodo		Todo  HiLink AspVBSFunction	Identifier  HiLink AspVBSMethods	PreProc  HiLink AspVBSEvents	Special  HiLink AspVBSTypeSpecifier	Type  delcommand HiLinkendiflet b:current_syntax = "aspvbs"if main_syntax == 'aspvbs'  unlet main_syntaxendif" vim: ts=8:sw=2:sts=0:noet

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -