neovim

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

vgrindefs.vim (1280B)


      1 " Vim syntax file
      2 " Language:	Vgrindefs
      3 " Maintainer:	The Vim Project <https://github.com/vim/vim>
      4 " Last Change:	2023 Aug 10
      5 " Former Maintainer:	Bram Moolenaar <Bram@vim.org>
      6 
      7 " The Vgrindefs file is used to specify a language for vgrind
      8 
      9 " Quit when a (custom) syntax file was already loaded
     10 if exists("b:current_syntax")
     11  finish
     12 endif
     13 
     14 " Comments
     15 syn match vgrindefsComment "^#.*"
     16 
     17 " The fields that vgrind recognizes
     18 syn match vgrindefsField ":ab="
     19 syn match vgrindefsField ":ae="
     20 syn match vgrindefsField ":pb="
     21 syn match vgrindefsField ":bb="
     22 syn match vgrindefsField ":be="
     23 syn match vgrindefsField ":cb="
     24 syn match vgrindefsField ":ce="
     25 syn match vgrindefsField ":sb="
     26 syn match vgrindefsField ":se="
     27 syn match vgrindefsField ":lb="
     28 syn match vgrindefsField ":le="
     29 syn match vgrindefsField ":nc="
     30 syn match vgrindefsField ":tl"
     31 syn match vgrindefsField ":oc"
     32 syn match vgrindefsField ":kw="
     33 
     34 " Also find the ':' at the end of the line, so all ':' are highlighted
     35 syn match vgrindefsField ":\\$"
     36 syn match vgrindefsField ":$"
     37 syn match vgrindefsField "\\$"
     38 
     39 " Define the default highlighting.
     40 " Only used when an item doesn't have highlighting yet
     41 hi def link vgrindefsField	Statement
     42 hi def link vgrindefsComment	Comment
     43 
     44 let b:current_syntax = "vgrindefs"
     45 
     46 " vim: ts=8