📄 lotos.vim
字号:
" Vim syntax file" Language: LOTOS (Language Of Temporal Ordering Specifications, IS8807)" Maintainer: Daniel Amyot <damyot@csi.uottawa.ca>" Last Change: Wed Aug 19 1998" URL: http://lotos.csi.uottawa.ca/~damyot/vim/lotos.vim" This file is an adaptation of pascal.vim by Mario Eusebio" I'm not sure I understand all of the syntax highlight language," but this file seems to do the job for standard LOTOS." 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 case ignore"Comments in LOTOS are between (* and *)syn region lotosComment start="(\*" end="\*)" contains=lotosTodo"Operators [], [...], >>, ->, |||, |[...]|, ||, ;, !, ?, :, =, ,, :=syn match lotosDelimiter "[][]"syn match lotosDelimiter ">>"syn match lotosDelimiter "->"syn match lotosDelimiter "\[>"syn match lotosDelimiter "[|;!?:=,]""Regular keywordssyn keyword lotosStatement specification endspec process endprocsyn keyword lotosStatement where behaviour behaviorsyn keyword lotosStatement any let par accept choice hide of insyn keyword lotosStatement i stop exit noexit"Operators from the Abstract Data Types in IS8807syn keyword lotosOperator eq ne succ and or xor implies iffsyn keyword lotosOperator not true falsesyn keyword lotosOperator Insert Remove IsIn NotIn Union Intssyn keyword lotosOperator Minus Includes IsSubsetOfsyn keyword lotosOperator lt le ge gt 0"Sorts in IS8807syn keyword lotosSort Boolean Bool FBoolean FBool Elementsyn keyword lotosSort Set String NaturalNumber Nat HexStringsyn keyword lotosSort HexDigit DecString DecDigitsyn keyword lotosSort OctString OctDigit BitString Bitsyn keyword lotosSort Octet OctetString"Keywords for ADTssyn keyword lotosType type endtype library endlib sorts formalsortssyn keyword lotosType eqns formaleqns opns formalopns forall ofsort issyn keyword lotosType for renamedby actualizedby sortnames opnnamessyn keyword lotosType usingsyn sync lines=250" 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_lotos_syntax_inits") if version < 508 let did_lotos_syntax_inits = 1 command -nargs=+ HiLink hi link <args> else command -nargs=+ HiLink hi def link <args> endif HiLink lotosStatement Statement HiLink lotosProcess Label HiLink lotosOperator Operator HiLink lotosSort Function HiLink lotosType Type HiLink lotosComment Comment HiLink lotosDelimiter String delcommand HiLinkendiflet b:current_syntax = "lotos"" vim: ts=8
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -