mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 19:25:11 -07:00
a98a6996c2
Vim runtime files based on 7.4.384 / hg changeset 7090d7f160f7 Excluding: Amiga icons (*.info, icons/) doc/hangulin.txt tutor/ spell/ lang/ (only used for menu translations) macros/maze/, macros/hanoi/, macros/life/, macros/urm/ These were used to test vi compatibility. termcap "Demonstration of a termcap file (for the Amiga and Archimedes)" Helped-by: Rich Wareham <rjw57@cam.ac.uk> Helped-by: John <john.schmidt.h@gmail.com> Helped-by: Yann <yann@yann-salaun.com> Helped-by: Christophe Badoit <c.badoit@lesiteimmo.com> Helped-by: drasill <github@tof2k.com> Helped-by: Tae Sandoval Murgan <taecilla@gmail.com> Helped-by: Lowe Thiderman <lowe.thiderman@gmail.com>
68 lines
2.2 KiB
VimL
68 lines
2.2 KiB
VimL
" Vim syntax file
|
|
" Language: SGML-linuxdoc (supported by old sgmltools-1.x)
|
|
" Maintainer: SungHyun Nam <goweol@gmail.com>
|
|
" Last Change: 2013 May 13
|
|
|
|
" For version 5.x: Clear all syntax items
|
|
" For version 6.x: Quit when a syntax file was already loaded
|
|
if version < 600
|
|
syntax clear
|
|
elseif exists("b:current_syntax")
|
|
finish
|
|
endif
|
|
|
|
syn case ignore
|
|
|
|
" tags
|
|
syn region sgmllnxEndTag start=+</+ end=+>+ contains=sgmllnxTagN,sgmllnxTagError
|
|
syn region sgmllnxTag start=+<[^/]+ end=+>+ contains=sgmllnxTagN,sgmllnxTagError
|
|
syn match sgmllnxTagN contained +<\s*[-a-zA-Z0-9]\++ms=s+1 contains=sgmllnxTagName
|
|
syn match sgmllnxTagN contained +</\s*[-a-zA-Z0-9]\++ms=s+2 contains=sgmllnxTagName
|
|
|
|
syn region sgmllnxTag2 start=+<\s*[a-zA-Z]\+/+ keepend end=+/+ contains=sgmllnxTagN2
|
|
syn match sgmllnxTagN2 contained +/.*/+ms=s+1,me=e-1
|
|
|
|
syn region sgmllnxSpecial oneline start="&" end=";"
|
|
|
|
" tag names
|
|
syn keyword sgmllnxTagName contained article author date toc title sect verb
|
|
syn keyword sgmllnxTagName contained abstract tscreen p itemize item enum
|
|
syn keyword sgmllnxTagName contained descrip quote htmlurl code ref
|
|
syn keyword sgmllnxTagName contained tt tag bf it url
|
|
syn match sgmllnxTagName contained "sect\d\+"
|
|
|
|
" Comments
|
|
syn region sgmllnxComment start=+<!--+ end=+-->+
|
|
syn region sgmllnxDocType start=+<!doctype+ end=+>+
|
|
|
|
" Define the default highlighting.
|
|
" For version 5.7 and earlier: only when not done already
|
|
" For version 5.8 and later: only when an item doesn't have highlighting yet
|
|
if version >= 508 || !exists("did_sgmllnx_syn_inits")
|
|
if version < 508
|
|
let did_sgmllnx_syn_inits = 1
|
|
command -nargs=+ HiLink hi link <args>
|
|
else
|
|
command -nargs=+ HiLink hi def link <args>
|
|
endif
|
|
|
|
HiLink sgmllnxTag2 Function
|
|
HiLink sgmllnxTagN2 Function
|
|
HiLink sgmllnxTag Special
|
|
HiLink sgmllnxEndTag Special
|
|
HiLink sgmllnxParen Special
|
|
HiLink sgmllnxEntity Type
|
|
HiLink sgmllnxDocEnt Type
|
|
HiLink sgmllnxTagName Statement
|
|
HiLink sgmllnxComment Comment
|
|
HiLink sgmllnxSpecial Special
|
|
HiLink sgmllnxDocType PreProc
|
|
HiLink sgmllnxTagError Error
|
|
|
|
delcommand HiLink
|
|
endif
|
|
|
|
let b:current_syntax = "sgmllnx"
|
|
|
|
" vim:set tw=78 ts=8 sts=2 sw=2 noet:
|