Bram Moolenaar | 0dc065e | 2005-07-04 22:49:24 +0000 | [diff] [blame] | 1 | " Vim syntax file |
Bram Moolenaar | 214641f | 2017-03-05 17:04:09 +0100 | [diff] [blame] | 2 | " Language: RFC 2614 - An API for Service Location SPI file |
| 3 | " Previous Maintainer: Nikolai Weibull <now@bitwi.se> |
| 4 | " Latest Revision: 2006-04-19 |
Bram Moolenaar | 0dc065e | 2005-07-04 22:49:24 +0000 | [diff] [blame] | 5 | |
| 6 | if exists("b:current_syntax") |
| 7 | finish |
| 8 | endif |
| 9 | |
| 10 | let s:cpo_save = &cpo |
| 11 | set cpo&vim |
| 12 | |
| 13 | syn keyword slpspiTodo contained TODO FIXME XXX NOTE |
| 14 | |
| 15 | syn region slpspiComment display oneline start='^[#;]' end='$' |
| 16 | \ contains=slpspiTodo,@Spell |
| 17 | |
| 18 | syn match slpspiBegin display '^' |
| 19 | \ nextgroup=slpspiKeyType, |
| 20 | \ slpspiComment skipwhite |
| 21 | |
| 22 | syn keyword slpspiKeyType contained PRIVATE PUBLIC |
| 23 | \ nextgroup=slpspiString skipwhite |
| 24 | |
| 25 | syn match slpspiString contained '\S\+' |
| 26 | \ nextgroup=slpspiKeyFile skipwhite |
| 27 | |
| 28 | syn match slpspiKeyFile contained '\S\+' |
| 29 | |
| 30 | hi def link slpspiTodo Todo |
| 31 | hi def link slpspiComment Comment |
| 32 | hi def link slpspiKeyType Type |
| 33 | hi def link slpspiString Identifier |
| 34 | hi def link slpspiKeyFile String |
| 35 | |
| 36 | let b:current_syntax = "slpspi" |
| 37 | |
| 38 | let &cpo = s:cpo_save |
| 39 | unlet s:cpo_save |