7
|
1 " Vim syntax file
|
|
2 " Language: sgml catalog file
|
|
3 " Maintainer: Johannes Zellner <johannes@zellner.org>
|
557
|
4 " Last Change: Fr, 04 Nov 2005 12:46:45 CET
|
7
|
5 " Filenames: /etc/sgml.catalog
|
2034
|
6 " $Id: catalog.vim,v 1.2 2005/11/23 21:11:10 vimboss Exp $
|
7
|
7
|
|
8 " Quit when a syntax file was already loaded
|
|
9 if exists("b:current_syntax")
|
|
10 finish
|
|
11 endif
|
|
12
|
|
13 syn case ignore
|
|
14
|
|
15 " strings
|
|
16 syn region catalogString start=+"+ skip=+\\\\\|\\"+ end=+"+ keepend
|
|
17 syn region catalogString start=+'+ skip=+\\\\\|\\'+ end=+'+ keepend
|
|
18
|
|
19 syn region catalogComment start=+--+ end=+--+ contains=catalogTodo
|
557
|
20 syn keyword catalogTodo TODO FIXME XXX NOTE contained
|
|
21 syn keyword catalogKeyword DOCTYPE OVERRIDE PUBLIC DTDDECL ENTITY CATALOG
|
7
|
22
|
|
23
|
|
24 " The default highlighting.
|
|
25 hi def link catalogString String
|
|
26 hi def link catalogComment Comment
|
|
27 hi def link catalogTodo Todo
|
|
28 hi def link catalogKeyword Statement
|
|
29
|
|
30 let b:current_syntax = "catalog"
|