neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

cynpp.vim (1263B)


      1 " Vim syntax file
      2 " Language:     Cyn++
      3 " Maintainer:   Phil Derrick <phild@forteds.com>
      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
     23 if exists("b:current_syntax")
     24  finish
     25 endif
     26 
     27 " Read the Cynlib syntax to start with - this includes the C++ syntax
     28 runtime! syntax/cynlib.vim
     29 unlet b:current_syntax
     30 
     31 
     32 
     33 " Cyn++ extensions
     34 
     35 syn keyword     cynppMacro      Always EndAlways
     36 syn keyword     cynppMacro      Module EndModule
     37 syn keyword     cynppMacro      Initial EndInitial
     38 syn keyword     cynppMacro      Posedge Negedge Changed
     39 syn keyword     cynppMacro      At
     40 syn keyword     cynppMacro      Thread EndThread
     41 syn keyword     cynppMacro      Instantiate
     42 
     43 " Define the default highlighting.
     44 " Only when an item doesn't have highlighting yet
     45 
     46 hi def link cLabel		Label
     47 hi def link cynppMacro  Statement
     48 
     49 
     50 let b:current_syntax = "cynpp"