0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00
vim/runtime/syntax/catalog.vim

31 lines
921 B
VimL
Raw Normal View History

2004-06-13 20:20:40 +00:00
" Vim syntax file
" Language: sgml catalog file
" Maintainer: Johannes Zellner <johannes@zellner.org>
2005-11-23 21:25:05 +00:00
" Last Change: Fr, 04 Nov 2005 12:46:45 CET
2004-06-13 20:20:40 +00:00
" Filenames: /etc/sgml.catalog
2010-01-06 20:54:52 +01:00
" $Id: catalog.vim,v 1.2 2005/11/23 21:11:10 vimboss Exp $
2004-06-13 20:20:40 +00:00
" Quit when a syntax file was already loaded
if exists("b:current_syntax")
finish
endif
syn case ignore
" strings
syn region catalogString start=+"+ skip=+\\\\\|\\"+ end=+"+ keepend
syn region catalogString start=+'+ skip=+\\\\\|\\'+ end=+'+ keepend
syn region catalogComment start=+--+ end=+--+ contains=catalogTodo
2005-11-23 21:25:05 +00:00
syn keyword catalogTodo TODO FIXME XXX NOTE contained
syn keyword catalogKeyword DOCTYPE OVERRIDE PUBLIC DTDDECL ENTITY CATALOG
2004-06-13 20:20:40 +00:00
" The default highlighting.
hi def link catalogString String
hi def link catalogComment Comment
hi def link catalogTodo Todo
hi def link catalogKeyword Statement
let b:current_syntax = "catalog"