annotate runtime/syntax/sgmllnx.vim @ 8461:988ddc5742f5 v7.4.1521

commit https://github.com/vim/vim/commit/8322e1f06e8fa39a6bb790a7d8d7db5d7aff3366 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 8 19:20:04 2016 +0100 patch 7.4.1521 Problem: File permission test fails on MS-Windows. Solution: Expect a different permission.
author Christian Brabandt <cb@256bit.org>
date Tue, 08 Mar 2016 19:30:05 +0100
parents eb6ab7e78925
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: SGML-linuxdoc (supported by old sgmltools-1.x)
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 7
diff changeset
3 " Maintainer: SungHyun Nam <goweol@gmail.com>
4437
eb6ab7e78925 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
4 " Last Change: 2013 May 13
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " tags
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn region sgmllnxEndTag start=+</+ end=+>+ contains=sgmllnxTagN,sgmllnxTagError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn region sgmllnxTag start=+<[^/]+ end=+>+ contains=sgmllnxTagN,sgmllnxTagError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match sgmllnxTagN contained +<\s*[-a-zA-Z0-9]\++ms=s+1 contains=sgmllnxTagName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match sgmllnxTagN contained +</\s*[-a-zA-Z0-9]\++ms=s+2 contains=sgmllnxTagName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn region sgmllnxTag2 start=+<\s*[a-zA-Z]\+/+ keepend end=+/+ contains=sgmllnxTagN2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match sgmllnxTagN2 contained +/.*/+ms=s+1,me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn region sgmllnxSpecial oneline start="&" end=";"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " tag names
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn keyword sgmllnxTagName contained article author date toc title sect verb
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn keyword sgmllnxTagName contained abstract tscreen p itemize item enum
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword sgmllnxTagName contained descrip quote htmlurl code ref
4437
eb6ab7e78925 Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
31 syn keyword sgmllnxTagName contained tt tag bf it url
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match sgmllnxTagName contained "sect\d\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn region sgmllnxComment start=+<!--+ end=+-->+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn region sgmllnxDocType start=+<!doctype+ end=+>+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 if version >= 508 || !exists("did_sgmllnx_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 let did_sgmllnx_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 HiLink sgmllnxTag2 Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 HiLink sgmllnxTagN2 Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 HiLink sgmllnxTag Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 HiLink sgmllnxEndTag Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 HiLink sgmllnxParen Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 HiLink sgmllnxEntity Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 HiLink sgmllnxDocEnt Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 HiLink sgmllnxTagName Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 HiLink sgmllnxComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 HiLink sgmllnxSpecial Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 HiLink sgmllnxDocType PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 HiLink sgmllnxTagError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 let b:current_syntax = "sgmllnx"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 " vim:set tw=78 ts=8 sts=2 sw=2 noet: