cuplsim.vim (1916B)
1 " Vim syntax file 2 " Language: CUPL simulation 3 " Maintainer: John Cook <john.cook@kla-tencor.com> 4 " Last Change: 2001 Apr 25 5 6 " quit when a syntax file was already loaded 7 if exists("b:current_syntax") 8 finish 9 endif 10 11 " Read the CUPL syntax to start with 12 runtime! syntax/cupl.vim 13 unlet b:current_syntax 14 15 " omit definition-specific stuff 16 syn clear cuplStatement 17 syn clear cuplFunction 18 syn clear cuplLogicalOperator 19 syn clear cuplArithmeticOperator 20 syn clear cuplAssignmentOperator 21 syn clear cuplEqualityOperator 22 syn clear cuplTruthTableOperator 23 syn clear cuplExtension 24 25 " simulation order statement 26 syn match cuplsimOrder "order:" nextgroup=cuplsimOrderSpec skipempty 27 syn region cuplsimOrderSpec start="." end=";"me=e-1 contains=cuplComment,cuplsimOrderFormat,cuplBitVector,cuplSpecialChar,cuplLogicalOperator,cuplCommaOperator contained 28 29 " simulation base statement 30 syn match cuplsimBase "base:" nextgroup=cuplsimBaseSpec skipempty 31 syn region cuplsimBaseSpec start="." end=";"me=e-1 contains=cuplComment,cuplsimBaseType contained 32 syn keyword cuplsimBaseType octal decimal hex contained 33 34 " simulation vectors statement 35 syn match cuplsimVectors "vectors:" 36 37 " simulator format control 38 syn match cuplsimOrderFormat "%\d\+\>" contained 39 40 " simulator control 41 syn match cuplsimStimulus "[10ckpx]\+" 42 syn match cuplsimStimulus +'\(\x\|x\)\+'+ 43 syn match cuplsimOutput "[lhznx*]\+" 44 syn match cuplsimOutput +"\x\+"+ 45 46 syn sync minlines=1 47 48 " Define the default highlighting. 49 " Only when an item doesn't have highlighting yet 50 51 " append to the highlighting links in cupl.vim 52 " The default highlighting. 53 hi def link cuplsimOrder cuplStatement 54 hi def link cuplsimBase cuplStatement 55 hi def link cuplsimBaseType cuplStatement 56 hi def link cuplsimVectors cuplStatement 57 hi def link cuplsimStimulus cuplNumber 58 hi def link cuplsimOutput cuplNumber 59 hi def link cuplsimOrderFormat cuplNumber 60 61 62 let b:current_syntax = "cuplsim" 63 " vim:ts=8