tssop.vim
来自「MSYS在windows下模拟了一个类unix的终端」· VIM 代码 · 共 88 行
VIM
88 行
" Vim syntax file" Language: TSS (Thermal Synthesizer System) Optics" Maintainer: Adrian Nagle, anagle@ball.com" Last Change: 2001 May 10" Filenames: *.tssop" URL: http://www.naglenet.org/vim/syntax/tssop.vim" MAIN URL: http://www.naglenet.org/vim/" 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" Ignore casesyn case ignore""" Begin syntax definitions for tss optics file."" Define keywords for TSSsyn keyword tssopParam ir_eps ir_trans ir_spec ir_tspec ir_refractsyn keyword tssopParam sol_eps sol_trans sol_spec sol_tspec sol_refractsyn keyword tssopParam color"syn keyword tssopProp propertysyn keyword tssopArgs white red blue green yellow orange violet pinksyn keyword tssopArgs turquoise grey black" Define matches for TSSsyn match tssopComment /comment \+= \+".*"/ contains=tssopParam,tssopCommentStringsyn match tssopCommentString /".*"/ containedsyn match tssopProp "property "syn match tssopProp "edit/optic "syn match tssopPropName "^property \S\+" contains=tssopPropsyn match tssopPropName "^edit/optic \S\+$" contains=tssopPropsyn match tssopInteger "-\=\<[0-9]*\>"syn match tssopFloat "-\=\<[0-9]*\.[0-9]*"syn match tssopScientific "-\=\<[0-9]*\.[0-9]*E[-+]\=[0-9]\+\>"" 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_tssop_syntax_inits") if version < 508 let did_tssop_syntax_inits = 1 command -nargs=+ HiLink hi link <args> else command -nargs=+ HiLink hi def link <args> endif HiLink tssopParam Statement HiLink tssopProp Identifier HiLink tssopArgs Special HiLink tssopComment Statement HiLink tssopCommentString Comment HiLink tssopPropName Typedef HiLink tssopInteger Number HiLink tssopFloat Float HiLink tssopScientific Float delcommand HiLinkendiflet b:current_syntax = "tssop"" vim: ts=8 sw=2
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?