dotfiles

<-- duh.
git clone https://hhvn.uk/dotfiles
git clone git://hhvn.uk/dotfiles
Log | Files | Refs | Submodules | LICENSE

gph.vim (2982B)


      1 set expandtab
      2 
      3 if exists("b:current_syntax")
      4  	finish
      5 endif
      6 
      7 " The below aren't actually going to afffect the content, they're just there
      8 " for my eyes. Comment at will.
      9 runtime! syntax/markdown.vim
     10 syn match  gphCitation '\[[^|]*\]' contains=gphCitationText,gphCitationBracks
     11 syn match  gphCitationText '[^\[\]]' contained
     12 syn match  gphCitationBracks '[\[\]]' contained
     13 
     14 hi gphCitationText guifg=#005f5f
     15 hi gphCitationBracks guifg=#a1a1d9
     16 " END comment spree
     17 
     18 syn match   gphSelector "|.*\]$"                                     contains=gphPipe,gphServer,gphURL,gphURI,gphFileDir,gphFileGph,gphFileCGI,gphFileDCGI,gphFileHTML,gphCitation
     19 syn match   gphType "^\[.*\]$"                                       contains=gphBrackl,gphType1,gphType2,gphSelector,gphType3,gphType4
     20 
     21 syn match   gphType1     "[012456789gmsITi\+:;<PcMd\*\.]" contained
     22 syn match   gphType2     "[hH]"                           contained
     23 syn match   gphType3     "3"                              contained
     24 syn match   gphType4     "[NrRfSHPeGFj]"                  contained
     25 syn match   gphServer    "[^|]*|[^|]*]"                   contained  contains=gphBrackr,gphSelf,gphErr,gphPipe,gphServer2
     26 syn match   gphServer2   "[^|\]]*"                        contained  contains=gphBrackr,gphPipe
     27 syn match   gphFileGph   "[^|]*\.gph|"                    contained  contains=gphPipe
     28 syn match   gphFileDir   "[^|]*\/|"                       contained  contains=gphPipe
     29 syn match   gphFileCGI   "[^|]*\.cgi|"                    contained  contains=gphPipe
     30 syn match   gphFileDCGI  "[^|]*\.dcgi|"                   contained  contains=gphPipe
     31 syn match   gphFileHTML  "[^|]*\.html|"                   contained  contains=gphPipe
     32 syn match   gphURL       "URL:[^|]*|"                     contained  contains=gphPipe
     33 syn match   gphURI       "URI:[^|]*|"                     contained  contains=gphPipe
     34 syn match   gphBrackl    '^\['                            contained
     35 syn match   gphBrackr    '\]$'                            contained
     36 syn match   gphPipe      '|'                              contained
     37 syn match   gphEscape    '^t'
     38 syn match   gphTab       '	'
     39 syn keyword gphSelf      server port                      contained
     40 syn keyword gphErr       err Err                          contained
     41 
     42 hi      gphPunc      guifg=#a1a1d9
     43 hi      gphEscape    guifg=#00d7d7
     44 hi link gphBrackl    gphPunc
     45 hi link gphBrackr    gphPunc
     46 hi link gphPipe      gphPunc
     47 hi      gphSelf      guifg=#005f5f
     48 hi link gphTab       errormsg
     49 hi      gphType1     guifg=#575b72
     50 hi      gphType2     guifg=#4747e1 
     51 hi      gphType3     guifg=#dc6f3c
     52 hi      gphType4     guifg=#4747e1
     53 hi link gphErr       gphType3
     54 hi      gphServer2   guifg=#a84b8d
     55 
     56 hi      gphFileGph   guifg=#777b8e
     57 hi link gphFileDir   gphFileGph
     58 hi      gphFileCGI   guifg=#00af87
     59 hi link gphFileDCGI  gphFileCGI
     60 hi      gphFileHTML  guifg=#4747e1 gui=bold
     61 hi      gphURL       guifg=#4747e1 gui=underline
     62 hi link gphURI       gphErr
     63 
     64 let b:current_syntax='gph'