Closed Asenar closed 11 years ago
You are right. I didn't even notice because my nesting is pretty shallow.
I tried to fix it but I wasn't able to figure it out. I reverted the previous commit because I think the coloring of the headings is more important.
Thanks for the helpful analysis!
Hi, in version 0.4 (or 0.4.1), I can do any header level, but since the commit 613108c191124159af7c5615 , only level 1 and level 2 are coloured correctly.
I don't know how to fix that but the answer is probably in the following lines:
diff --git a/syntax/org.vim b/syntax/org.vim index edad4fc..ff983b4 100644 --- a/syntax/org.vim +++ b/syntax/org.vim @@ -254,13 +254,14 @@ hi def link org_comment Comment " - the non-standard
code' markup is also supported " - =code= and ~verbatim~ are also supported as block-level markup, see below. " Ref: http://orgmode.org/manual/Emphasis-and-monospace.html -"syntax match org_bold /\*[^ ]*\*/ -syntax region org_bold start="\S\@<= \*\| \*\S\@=" end="\S\@<=\*\|\*\S\@=" keepend oneline -syntax region org_italic start="\S\@<= \/\| \/\S\@=" end="\S\@<=\/\|\/\S\@=" keepend oneline -syntax region org_underline start="\S\@<=_\|_\S\@=" end="\S\@<=_\|_\S\@=" keepend oneline -syntax region org_code start="\S\@<==\|=\S\@=" end="\S\@<==\|=\S\@=" keepend oneline -syntax region org_code start="\S\@<=
|`\S\@=" end="\S\@<='|'\S\@=" keepend oneline -syntax region org_verbatim start="\S\@<=~|~\S\@=" end="\S\@<=~|~\S\@=" keepend oneline + +syntax match orgbold '(^|\s|[({])\zs[^ ,'"](.{-}[^ ,'"])\?\ze(_$|\s|[)}.;!-\:])' +syntax match orgitalic '(^|\s|[({])\zs\/[^ ,'"\/](.{-}[^ ,'"])\?\/\ze(_$|\s|[)}.;!-\:])' +syntax match orgunderline '(^|\s|[({])\zs[^ ,'"](.{-}[^ ,'"])\?\ze(_$|\s|[)}.;!-\:])' +syntax match orgcode '(^|\s|[({])\zs=[^ ,'"](.{-}[^ ,'"])\?=\ze(_$|\s|[)}.;!-\:])'