neovim

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

conf.vim (879B)


      1 " Vim syntax file
      2 " Language:	generic configure file
      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 " Quit when a (custom) syntax file was already loaded
      8 if exists("b:current_syntax")
      9  finish
     10 endif
     11 
     12 syn keyword	confTodo	contained TODO FIXME XXX
     13 " Avoid matching "text#text", used in /etc/disktab and /etc/gettytab
     14 syn match	confComment	"^#.*" contains=confTodo,@Spell
     15 syn match	confComment	"\s#.*"ms=s+1 contains=confTodo,@Spell
     16 syn region	confString	start=+"+ skip=+\\\\\|\\"+ end=+"+ oneline
     17 syn region	confString	start=+'+ skip=+\\\\\|\\'+ end=+'+ oneline
     18 
     19 " Define the default highlighting.
     20 " Only used when an item doesn't have highlighting yet
     21 hi def link confComment	Comment
     22 hi def link confTodo	Todo
     23 hi def link confString	String
     24 
     25 let b:current_syntax = "conf"
     26 
     27 " vim: ts=8 sw=2