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