dotfiles

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

hirc.vim (705B)


      1 " Vim syntax file
      2 " Language:	hirc configuration
      3 " Maintainer:	hhvn <dev@hhvn.uk>
      4 " Last Change:	2022-02-08
      5 " License:	This file is placed in the public domain.
      6 
      7 if exists("b:current_syntax")
      8 	finish
      9 endif
     10 
     11 syn match hircComment "^[^/].*"
     12 syn region hircFormatA start="^/format" end=/$/ contains=hircStyle,hircVariable,hircNickStyle
     13 syn region hircFormatB start="^/set format." end=/$/ contains=hircStyle,hircVariable,hircNickStyle
     14 syn match hircStyle "%{[^}]*}" contained
     15 syn region hircNickStyle matchgroup=hircStyle start='%{nick:' end='}' contains=hircStyle,hircVariable
     16 syn match hircVariable "\${[^}]*}" contained
     17 
     18 hi link hircComment comment
     19 hi link hircStyle preproc
     20 hi link hircVariable variable