annotate runtime/syntax/asciidoc.vim @ 7679:c80284cfe1b8 v7.4.1138

commit https://github.com/vim/vim/commit/3a466a87180d677b898687ef72d09f14a397794e Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 19 17:47:25 2016 +0100 patch 7.4.1138 Problem: When running gvim in the foreground some icons are missing. (Taylor Venable) Solution: Move the call to gui_gtk_register_resource(). (Kazunobu Kuriyama)
author Christian Brabandt <cb@256bit.org>
date Tue, 19 Jan 2016 18:00:06 +0100
parents 6921742f396a
children 2334bf788e8a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4229
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 " Vim syntax file
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2 " Language: AsciiDoc
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 " Author: Stuart Rackham <srackham@gmail.com> (inspired by Felix
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 " Obenhuber's original asciidoc.vim script).
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 " URL: http://asciidoc.org/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 " Licence: GPL (http://www.gnu.org)
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 " Remarks: Vim 6 or greater
6180
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4229
diff changeset
8 " Last Update: 2014 Aug 29 (see Issue 240)
4229
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 " Limitations:
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 "
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 " - Nested quoted text formatting is highlighted according to the outer
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 " format.
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 " - If a closing Example Block delimiter may be mistaken for a title
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 " underline. A workaround is to insert a blank line before the closing
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 " delimiter.
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 " - Lines within a paragraph starting with equals characters are
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 " highlighted as single-line titles.
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 " - Lines within a paragraph beginning with a period are highlighted as
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 " block titles.
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 if exists("b:current_syntax")
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 finish
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 endif
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 syn clear
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 syn sync fromstart
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 syn sync linebreaks=100
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 " Run :help syn-priority to review syntax matching priority.
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 syn keyword asciidocToDo TODO FIXME CHECK TEST XXX ZZZ DEPRECATED
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 syn match asciidocBackslash /\\/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 syn region asciidocIdMarker start=/^\$Id:\s/ end=/\s\$$/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 syn match asciidocCallout /\\\@<!<\d\{1,2}>/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 syn match asciidocOpenBlockDelimiter /^--$/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 syn match asciidocLineBreak /[ \t]+$/ containedin=asciidocList
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37 syn match asciidocRuler /^'\{3,}$/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38 syn match asciidocPagebreak /^<\{3,}$/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
39 syn match asciidocEntityRef /\\\@<!&[#a-zA-Z]\S\{-};/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
40 syn region asciidocLiteralParagraph start=/\(\%^\|\_^\s*\n\)\@<=\s\+\S\+/ end=/\(^\(+\|--\)\?\s*$\)\@=/ contains=asciidocToDo
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
41 syn match asciidocURL /\\\@<!\<\(http\|https\|ftp\|file\|irc\):\/\/[^| \t]*\(\w\|\/\)/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
42 syn match asciidocEmail /[\\.:]\@<!\(\<\|<\)\w\(\w\|[.-]\)*@\(\w\|[.-]\)*\w>\?[0-9A-Za-z_]\@!/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
43 syn match asciidocAttributeRef /\\\@<!{\w\(\w\|[-,+]\)*\([=!@#$%?:].*\)\?}/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
44
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
45 " As a damage control measure quoted patterns always terminate at a blank
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
46 " line (see 'Limitations' above).
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
47 syn match asciidocQuotedAttributeList /\\\@<!\[[a-zA-Z0-9_-][a-zA-Z0-9 _-]*\][+_'`#*]\@=/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
48 syn match asciidocQuotedSubscript /\\\@<!\~\S\_.\{-}\(\~\|\n\s*\n\)/ contains=asciidocEntityRef
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
49 syn match asciidocQuotedSuperscript /\\\@<!\^\S\_.\{-}\(\^\|\n\s*\n\)/ contains=asciidocEntityRef
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
50
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
51 syn match asciidocQuotedMonospaced /\(^\|[| \t([.,=\]]\)\@<=+\([+ \n\t]\)\@!\(.\|\n\(\s*\n\)\@!\)\{-}\S\(+\([| \t)[\],.?!;:=]\|$\)\@=\)/ contains=asciidocEntityRef
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
52 syn match asciidocQuotedMonospaced2 /\(^\|[| \t([.,=\]]\)\@<=`\([` \n\t]\)\@!\(.\|\n\(\s*\n\)\@!\)\{-}\S\(`\([| \t)[\],.?!;:=]\|$\)\@=\)/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
53 syn match asciidocQuotedUnconstrainedMonospaced /[\\+]\@<!++\S\_.\{-}\(++\|\n\s*\n\)/ contains=asciidocEntityRef
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
54
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
55 syn match asciidocQuotedEmphasized /\(^\|[| \t([.,=\]]\)\@<=_\([_ \n\t]\)\@!\(.\|\n\(\s*\n\)\@!\)\{-}\S\(_\([| \t)[\],.?!;:=]\|$\)\@=\)/ contains=asciidocEntityRef
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
56 syn match asciidocQuotedEmphasized2 /\(^\|[| \t([.,=\]]\)\@<='\([' \n\t]\)\@!\(.\|\n\(\s*\n\)\@!\)\{-}\S\('\([| \t)[\],.?!;:=]\|$\)\@=\)/ contains=asciidocEntityRef
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
57 syn match asciidocQuotedUnconstrainedEmphasized /\\\@<!__\S\_.\{-}\(__\|\n\s*\n\)/ contains=asciidocEntityRef
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
58
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
59 syn match asciidocQuotedBold /\(^\|[| \t([.,=\]]\)\@<=\*\([* \n\t]\)\@!\(.\|\n\(\s*\n\)\@!\)\{-}\S\(\*\([| \t)[\],.?!;:=]\|$\)\@=\)/ contains=asciidocEntityRef
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
60 syn match asciidocQuotedUnconstrainedBold /\\\@<!\*\*\S\_.\{-}\(\*\*\|\n\s*\n\)/ contains=asciidocEntityRef
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
61
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
62 " Don't allow ` in single quoted (a kludge to stop confusion with `monospaced`).
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
63 syn match asciidocQuotedSingleQuoted /\(^\|[| \t([.,=\]]\)\@<=`\([` \n\t]\)\@!\([^`]\|\n\(\s*\n\)\@!\)\{-}[^` \t]\('\([| \t)[\],.?!;:=]\|$\)\@=\)/ contains=asciidocEntityRef
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
64
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
65 syn match asciidocQuotedDoubleQuoted /\(^\|[| \t([.,=\]]\)\@<=``\([` \n\t]\)\@!\(.\|\n\(\s*\n\)\@!\)\{-}\S\(''\([| \t)[\],.?!;:=]\|$\)\@=\)/ contains=asciidocEntityRef
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
66
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
67 syn match asciidocDoubleDollarPassthrough /\\\@<!\(^\|[^0-9a-zA-Z$]\)\@<=\$\$..\{-}\(\$\$\([^0-9a-zA-Z$]\|$\)\@=\|^$\)/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
68 syn match asciidocTriplePlusPassthrough /\\\@<!\(^\|[^0-9a-zA-Z$]\)\@<=+++..\{-}\(+++\([^0-9a-zA-Z$]\|$\)\@=\|^$\)/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
69
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
70 syn match asciidocAdmonition /^\u\{3,15}:\(\s\+.*\)\@=/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
71
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
72 syn region asciidocTable_OLD start=/^\([`.']\d*[-~_]*\)\+[-~_]\+\d*$/ end=/^$/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
73 syn match asciidocBlockTitle /^\.[^. \t].*[^-~_]$/ contains=asciidocQuoted.*,asciidocAttributeRef
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
74 syn match asciidocTitleUnderline /[-=~^+]\{2,}$/ transparent contained contains=NONE
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
75 syn match asciidocOneLineTitle /^=\{1,5}\s\+\S.*$/ contains=asciidocQuoted.*,asciidocMacroAttributes,asciidocAttributeRef,asciidocEntityRef,asciidocEmail,asciidocURL,asciidocBackslash
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
76 syn match asciidocTwoLineTitle /^[^. +/].*[^.]\n[-=~^+]\{3,}$/ contains=asciidocQuoted.*,asciidocMacroAttributes,asciidocAttributeRef,asciidocEntityRef,asciidocEmail,asciidocURL,asciidocBackslash,asciidocTitleUnderline
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
77
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
78 syn match asciidocAttributeList /^\[[^[ \t].*\]$/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
79 syn match asciidocQuoteBlockDelimiter /^_\{4,}$/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
80 syn match asciidocExampleBlockDelimiter /^=\{4,}$/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
81 syn match asciidocSidebarDelimiter /^*\{4,}$/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
82
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
83 " See http://vimdoc.sourceforge.net/htmldoc/usr_44.html for excluding region
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
84 " contents from highlighting.
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
85 syn match asciidocTablePrefix /\(\S\@<!\(\([0-9.]\+\)\([*+]\)\)\?\([<\^>.]\{,3}\)\?\([a-z]\)\?\)\?|/ containedin=asciidocTableBlock contained
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
86 syn region asciidocTableBlock matchgroup=asciidocTableDelimiter start=/^|=\{3,}$/ end=/^|=\{3,}$/ keepend contains=ALL
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
87 syn match asciidocTablePrefix /\(\S\@<!\(\([0-9.]\+\)\([*+]\)\)\?\([<\^>.]\{,3}\)\?\([a-z]\)\?\)\?!/ containedin=asciidocTableBlock contained
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
88 syn region asciidocTableBlock2 matchgroup=asciidocTableDelimiter2 start=/^!=\{3,}$/ end=/^!=\{3,}$/ keepend contains=ALL
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
89
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
90 syn match asciidocListContinuation /^+$/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
91 syn region asciidocLiteralBlock start=/^\.\{4,}$/ end=/^\.\{4,}$/ contains=asciidocCallout,asciidocToDo keepend
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
92 syn region asciidocListingBlock start=/^-\{4,}$/ end=/^-\{4,}$/ contains=asciidocCallout,asciidocToDo keepend
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
93 syn region asciidocCommentBlock start="^/\{4,}$" end="^/\{4,}$" contains=asciidocToDo
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
94 syn region asciidocPassthroughBlock start="^+\{4,}$" end="^+\{4,}$"
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
95
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
96 " Allowing leading \w characters in the filter delimiter is to accomodate
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
97 " the pre version 8.2.7 syntax and may be removed in future releases.
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
98 syn region asciidocFilterBlock start=/^\w*\~\{4,}$/ end=/^\w*\~\{4,}$/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
99
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
100 syn region asciidocMacroAttributes matchgroup=asciidocRefMacro start=/\\\@<!<<"\{-}\(\w\|-\|_\|:\|\.\)\+"\?,\?/ end=/\(>>\)\|^$/ contains=asciidocQuoted.* keepend
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
101 syn region asciidocMacroAttributes matchgroup=asciidocAnchorMacro start=/\\\@<!\[\{2}\(\w\|-\|_\|:\|\.\)\+,\?/ end=/\]\{2}/ keepend
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
102 syn region asciidocMacroAttributes matchgroup=asciidocAnchorMacro start=/\\\@<!\[\{3}\(\w\|-\|_\|:\|\.\)\+/ end=/\]\{3}/ keepend
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
103 syn region asciidocMacroAttributes matchgroup=asciidocMacro start=/[\\0-9a-zA-Z]\@<!\w\(\w\|-\)*:\S\{-}\[/ skip=/\\\]/ end=/\]\|^$/ contains=asciidocQuoted.*,asciidocAttributeRef,asciidocEntityRef keepend
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
104 " Highlight macro that starts with an attribute reference (a common idiom).
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
105 syn region asciidocMacroAttributes matchgroup=asciidocMacro start=/\(\\\@<!{\w\(\w\|[-,+]\)*\([=!@#$%?:].*\)\?}\)\@<=\S\{-}\[/ skip=/\\\]/ end=/\]\|^$/ contains=asciidocQuoted.*,asciidocAttributeRef keepend
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
106 syn region asciidocMacroAttributes matchgroup=asciidocIndexTerm start=/\\\@<!(\{2,3}/ end=/)\{2,3}/ contains=asciidocQuoted.*,asciidocAttributeRef keepend
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
107
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
108 syn match asciidocCommentLine "^//\([^/].*\|\)$" contains=asciidocToDo
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
109
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
110 syn region asciidocAttributeEntry start=/^:\w/ end=/:\(\s\|$\)/ oneline
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
111
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
112 " Lists.
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
113 syn match asciidocListBullet /^\s*\zs\(-\|\*\{1,5}\)\ze\s/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
114 syn match asciidocListNumber /^\s*\zs\(\(\d\+\.\)\|\.\{1,5}\|\(\a\.\)\|\([ivxIVX]\+)\)\)\ze\s\+/
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
115 syn region asciidocListLabel start=/^\s*/ end=/\(:\{2,4}\|;;\)$/ oneline contains=asciidocQuoted.*,asciidocMacroAttributes,asciidocAttributeRef,asciidocEntityRef,asciidocEmail,asciidocURL,asciidocBackslash,asciidocToDo keepend
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
116 " DEPRECATED: Horizontal label.
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
117 syn region asciidocHLabel start=/^\s*/ end=/\(::\|;;\)\(\s\+\|\\$\)/ oneline contains=asciidocQuoted.*,asciidocMacroAttributes keepend
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
118 " Starts with any of the above.
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
119 syn region asciidocList start=/^\s*\(-\|\*\{1,5}\)\s/ start=/^\s*\(\(\d\+\.\)\|\.\{1,5}\|\(\a\.\)\|\([ivxIVX]\+)\)\)\s\+/ start=/.\+\(:\{2,4}\|;;\)$/ end=/\(^[=*]\{4,}$\)\@=/ end=/\(^\(+\|--\)\?\s*$\)\@=/ contains=asciidocList.\+,asciidocQuoted.*,asciidocMacroAttributes,asciidocAttributeRef,asciidocEntityRef,asciidocEmail,asciidocURL,asciidocBackslash,asciidocCommentLine,asciidocAttributeList,asciidocToDo
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
120
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
121 hi def link asciidocAdmonition Special
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
122 hi def link asciidocAnchorMacro Macro
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
123 hi def link asciidocAttributeEntry Special
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
124 hi def link asciidocAttributeList Special
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
125 hi def link asciidocAttributeMacro Macro
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
126 hi def link asciidocAttributeRef Special
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
127 hi def link asciidocBackslash Special
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
128 hi def link asciidocBlockTitle Title
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
129 hi def link asciidocCallout Label
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
130 hi def link asciidocCommentBlock Comment
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
131 hi def link asciidocCommentLine Comment
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
132 hi def link asciidocDoubleDollarPassthrough Special
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
133 hi def link asciidocEmail Macro
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
134 hi def link asciidocEntityRef Special
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
135 hi def link asciidocExampleBlockDelimiter Type
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
136 hi def link asciidocFilterBlock Type
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
137 hi def link asciidocHLabel Label
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
138 hi def link asciidocIdMarker Special
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
139 hi def link asciidocIndexTerm Macro
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
140 hi def link asciidocLineBreak Special
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
141 hi def link asciidocOpenBlockDelimiter Label
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
142 hi def link asciidocListBullet Label
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
143 hi def link asciidocListContinuation Label
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
144 hi def link asciidocListingBlock Identifier
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
145 hi def link asciidocListLabel Label
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
146 hi def link asciidocListNumber Label
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
147 hi def link asciidocLiteralBlock Identifier
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
148 hi def link asciidocLiteralParagraph Identifier
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
149 hi def link asciidocMacroAttributes Label
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
150 hi def link asciidocMacro Macro
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
151 hi def link asciidocOneLineTitle Title
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
152 hi def link asciidocPagebreak Type
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
153 hi def link asciidocPassthroughBlock Identifier
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
154 hi def link asciidocQuoteBlockDelimiter Type
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
155 hi def link asciidocQuotedAttributeList Special
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
156 hi def link asciidocQuotedBold Special
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
157 hi def link asciidocQuotedDoubleQuoted Label
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
158 hi def link asciidocQuotedEmphasized2 Type
6180
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4229
diff changeset
159 hi asciidocQuotedEmphasizedItalic term=italic cterm=italic gui=italic
6921742f396a Update runtime files.
Bram Moolenaar <bram@vim.org>
parents: 4229
diff changeset
160 hi def link asciidocQuotedEmphasized asciidocQuotedEmphasizedItalic
4229
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
161 hi def link asciidocQuotedMonospaced2 Identifier
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
162 hi def link asciidocQuotedMonospaced Identifier
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
163 hi def link asciidocQuotedSingleQuoted Label
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
164 hi def link asciidocQuotedSubscript Type
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
165 hi def link asciidocQuotedSuperscript Type
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
166 hi def link asciidocQuotedUnconstrainedBold Special
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
167 hi def link asciidocQuotedUnconstrainedEmphasized Type
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
168 hi def link asciidocQuotedUnconstrainedMonospaced Identifier
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
169 hi def link asciidocRefMacro Macro
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
170 hi def link asciidocRuler Type
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
171 hi def link asciidocSidebarDelimiter Type
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
172 hi def link asciidocTableBlock2 NONE
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
173 hi def link asciidocTableBlock NONE
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
174 hi def link asciidocTableDelimiter2 Label
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
175 hi def link asciidocTableDelimiter Label
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
176 hi def link asciidocTable_OLD Type
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
177 hi def link asciidocTablePrefix2 Label
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
178 hi def link asciidocTablePrefix Label
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
179 hi def link asciidocToDo Todo
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
180 hi def link asciidocTriplePlusPassthrough Special
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
181 hi def link asciidocTwoLineTitle Title
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
182 hi def link asciidocURL Macro
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
183 let b:current_syntax = "asciidoc"
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
184
fa4089df54bc Update runtime files.
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
185 " vim: wrap et sw=2 sts=2: