1" Vim syntax file 2" Language: Cyn++ 3" Maintainer: Phil Derrick <[email protected]> 4" Last change: 2001 Sep 02 5" 6" Language Information 7" 8" Cynpp (Cyn++) is a macro language to ease coding in Cynlib. 9" Cynlib is a library of C++ classes to allow hardware 10" modelling in C++. Combined with a simulation kernel, 11" the compiled and linked executable forms a hardware 12" simulation of the described design. 13" 14" Cyn++ is designed to be HDL-like. 15" 16" Further information can be found from www.forteds.com 17 18 19 20 21 22" quit when a syntax file was already loaded 23if exists("b:current_syntax") 24 finish 25endif 26 27" Read the Cynlib syntax to start with - this includes the C++ syntax 28runtime! syntax/cynlib.vim 29unlet b:current_syntax 30 31 32 33" Cyn++ extensions 34 35syn keyword cynppMacro Always EndAlways 36syn keyword cynppMacro Module EndModule 37syn keyword cynppMacro Initial EndInitial 38syn keyword cynppMacro Posedge Negedge Changed 39syn keyword cynppMacro At 40syn keyword cynppMacro Thread EndThread 41syn keyword cynppMacro Instantiate 42 43" Define the default highlighting. 44" Only when an item doesn't have highlighting yet 45 46hi def link cLabel Label 47hi def link cynppMacro Statement 48 49 50let b:current_syntax = "cynpp" 51