📄 kscript.vim
字号:
" Vim syntax file" Language: kscript" Maintainer: Thomas Capricelli <orzel@yalbi.com>" URL: http://aquila.rezel.enst.fr/thomas/vim/kscript.vim" CVS: $Id: kscript.vim,v 1.1.1.1 2001/06/07 21:35:11 corinna Exp $" 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") finishendifsyn keyword kscriptPreCondit import fromsyn keyword kscriptHardCoded print println connect length arg mid upper lower isEmpty toInt toFloat findApplicationsyn keyword kscriptConditional if else switchsyn keyword kscriptRepeat while for do foreachsyn keyword kscriptExceptions emit catch raise try signalsyn keyword kscriptFunction class struct enumsyn keyword kscriptConst FALSE TRUE false truesyn keyword kscriptStatement return deletesyn keyword kscriptLabel case defaultsyn keyword kscriptStorageClass constsyn keyword kscriptType in out inout varsyn keyword kscriptTodo contained TODO FIXME XXXsyn region kscriptComment start="/\*" end="\*/" contains=kscriptTodosyn match kscriptComment "//.*" contains=kscriptTodosyn match kscriptComment "#.*$" contains=kscriptTodosyn region kscriptString start=+'+ end=+'+ skip=+\\\\\|\\'+syn region kscriptString start=+"+ end=+"+ skip=+\\\\\|\\"+syn region kscriptString start=+"""+ end=+"""+syn region kscriptString start=+'''+ end=+'''+" 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_kscript_syntax_inits") if version < 508 let did_kscript_syntax_inits = 1 command -nargs=+ HiLink hi link <args> else command -nargs=+ HiLink hi def link <args> endif HiLink kscriptConditional Conditional HiLink kscriptRepeat Repeat HiLink kscriptExceptions Statement HiLink kscriptFunction Function HiLink kscriptConst Constant HiLink kscriptStatement Statement HiLink kscriptLabel Label HiLink kscriptStorageClass StorageClass HiLink kscriptType Type HiLink kscriptTodo Todo HiLink kscriptComment Comment HiLink kscriptString String HiLink kscriptPreCondit PreCondit HiLink kscriptHardCoded Statement delcommand HiLinkendiflet b:current_syntax = "kscript"" vim: ts=8
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -