4264
|
1 " Vim syntax file
|
|
2 " Language: RELAX NG
|
|
3 " Maintainer: Jaromir Hradilek <jhradilek@gmail.com>
|
|
4 " URL: https://github.com/jhradilek/vim-rng
|
|
5 " Last Change: 25 March 2013
|
|
6 " Description: A syntax file for RELAX NG, a schema language for XML
|
|
7
|
|
8 if exists('b:current_syntax')
|
|
9 finish
|
|
10 endif
|
|
11
|
|
12 do Syntax xml
|
|
13 syn spell toplevel
|
|
14 syn cluster xmlTagHook add=rngTagName
|
|
15 syn case match
|
|
16
|
|
17 syn keyword rngTagName anyName attribute choice data define div contained
|
|
18 syn keyword rngTagName element empty except externalRef grammar contained
|
|
19 syn keyword rngTagName group include interleave list mixed name contained
|
|
20 syn keyword rngTagName notAllowed nsName oneOrMore optional param contained
|
|
21 syn keyword rngTagName parentRef ref start text value zeroOrMore contained
|
|
22
|
|
23 hi def link rngTagName Statement
|
|
24
|
|
25 let b:current_syntax = 'rng'
|