Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | " Vim syntax file |
| 2 | " Language: generic configure file |
Christian Brabandt | e978b45 | 2023-08-13 10:33:05 +0200 | [diff] [blame] | 3 | " Maintainer: The Vim Project <https://github.com/vim/vim> |
| 4 | " Last Change: 2023 Aug 10 |
| 5 | " Former Maintainer: Bram Moolenaar <Bram@vim.org> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 6 | |
Bram Moolenaar | d857f0e | 2005-06-21 22:37:39 +0000 | [diff] [blame] | 7 | " Quit when a (custom) syntax file was already loaded |
| 8 | if exists("b:current_syntax") |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 |
Bram Moolenaar | 4c29502 | 2021-05-02 17:19:11 +0200 | [diff] [blame] | 14 | syn match confComment "^#.*" contains=confTodo,@Spell |
| 15 | syn match confComment "\s#.*"ms=s+1 contains=confTodo,@Spell |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 16 | syn region confString start=+"+ skip=+\\\\\|\\"+ end=+"+ oneline |
| 17 | syn region confString start=+'+ skip=+\\\\\|\\'+ end=+'+ oneline |
| 18 | |
| 19 | " Define the default highlighting. |
Bram Moolenaar | d857f0e | 2005-06-21 22:37:39 +0000 | [diff] [blame] | 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 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 24 | |
| 25 | let b:current_syntax = "conf" |
| 26 | |
| 27 | " vim: ts=8 sw=2 |