view runtime/syntax/rng.vim @ 7490:4a81ecde8701 v7.4.1047

commit https://github.com/vim/vim/commit/7f68203168aeb22fcf8a5a9680503fe16759ebd4 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 4 12:13:05 2016 +0100 patch 7.4.1047 Problem: Tests fail on MS-Windows. Solution: Set 'selection' to inclusive.
author Christian Brabandt <cb@256bit.org>
date Mon, 04 Jan 2016 12:15:04 +0100
parents 2d1383658bb4
children
line wrap: on
line source

" Vim syntax file
" Language:    RELAX NG
" Maintainer:  Jaromir Hradilek <jhradilek@gmail.com>
" URL:         https://github.com/jhradilek/vim-rng
" Last Change: 25 March 2013
" Description: A syntax file for RELAX NG, a schema language for XML

if exists('b:current_syntax')
  finish
endif

do Syntax xml
syn spell toplevel
syn cluster xmlTagHook add=rngTagName
syn case match

syn keyword rngTagName anyName attribute choice data define div contained
syn keyword rngTagName element empty except externalRef grammar contained
syn keyword rngTagName group include interleave list mixed name contained
syn keyword rngTagName notAllowed nsName oneOrMore optional param contained
syn keyword rngTagName parentRef ref start text value zeroOrMore contained

hi def link rngTagName Statement

let b:current_syntax = 'rng'