neovim

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

mgp.vim (2000B)


      1 " Vim syntax file
      2 " Language:     mgp - MaGic Point
      3 " Maintainer:   Gerfried Fuchs <alfie@ist.org>
      4 " Filenames:    *.mgp
      5 " Last Change:  25 Apr 2001
      6 " URL:		http://alfie.ist.org/vim/syntax/mgp.vim
      7 "
      8 " Comments are very welcome - but please make sure that you are commenting on
      9 " the latest version of this file.
     10 " SPAM is _NOT_ welcome - be ready to be reported!
     11 
     12 
     13 " quit when a syntax file was already loaded
     14 if exists("b:current_syntax")
     15  finish
     16 endif
     17 
     18 
     19 syn match mgpLineSkip "\\$"
     20 
     21 " all the commands that are currently recognized
     22 syn keyword mgpCommand contained size fore back bgrad left leftfill center
     23 syn keyword mgpCommand contained right shrink lcutin rcutin cont xfont vfont
     24 syn keyword mgpCommand contained tfont tmfont tfont0 bar image newimage
     25 syn keyword mgpCommand contained prefix icon bimage default tab vgap hgap
     26 syn keyword mgpCommand contained pause mark again system filter endfilter
     27 syn keyword mgpCommand contained vfcap tfdir deffont font embed endembed
     28 syn keyword mgpCommand contained noop pcache include
     29 
     30 " charset is not yet supported :-)
     31 " syn keyword mgpCommand contained charset
     32 
     33 syn region mgpFile     contained start=+"+ skip=+\\\\\|\\"+ end=+"+
     34 syn match mgpValue     contained "\d\+"
     35 syn match mgpSize      contained "\d\+x\d\+"
     36 syn match mgpLine      +^%.*$+ contains=mgpCommand,mgpFile,mgpSize,mgpValue
     37 
     38 " Comments
     39 syn match mgpPercent   +^%%.*$+
     40 syn match mgpHash      +^#.*$+
     41 
     42 " these only work alone
     43 syn match mgpPage      +^%page$+
     44 syn match mgpNoDefault +^%nodefault$+
     45 
     46 
     47 " Define the default highlighting.
     48 " Only when an item doesn't have highlighting yet
     49 
     50 hi def link mgpLineSkip	Special
     51 
     52 hi def link mgpHash	mgpComment
     53 hi def link mgpPercent	mgpComment
     54 hi def link mgpComment	Comment
     55 
     56 hi def link mgpCommand	Identifier
     57 
     58 hi def link mgpLine	Type
     59 
     60 hi def link mgpFile	String
     61 hi def link mgpSize	Number
     62 hi def link mgpValue	Number
     63 
     64 hi def link mgpPage	mgpDefine
     65 hi def link mgpNoDefault	mgpDefine
     66 hi def link mgpDefine	Define
     67 
     68 
     69 let b:current_syntax = "mgp"