diff options
author | Stuart Rackham <srackham@methods.co.nz> | 2013-01-01 20:59:50 +1300 |
---|---|---|
committer | Stuart Rackham <srackham@methods.co.nz> | 2013-01-01 20:59:50 +1300 |
commit | ccf4c93a27c6f9fa4f05456eeeff30187ec8de0f (patch) | |
tree | 3164a37b3fad2a35ebaf7ed74aeac93b0921c7c3 | |
parent | 0958ec32157099f21513623e55f681c24c6ace84 (diff) | |
download | asciidoc-ccf4c93a27c6f9fa4f05456eeeff30187ec8de0f.tar.gz |
Vim syntax file: fixed highlighting of lines with spaces preceding an indented paragraph.
See https://groups.google.com/group/asciidoc/browse_thread/thread/5145e4c0b65cde0a
-rw-r--r-- | vim/syntax/asciidoc.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/syntax/asciidoc.vim b/vim/syntax/asciidoc.vim index 6a33ae9..9c7fbfc 100644 --- a/vim/syntax/asciidoc.vim +++ b/vim/syntax/asciidoc.vim @@ -36,7 +36,7 @@ syn match asciidocLineBreak /[ \t]+$/ syn match asciidocRuler /^'\{3,}$/ syn match asciidocPagebreak /^<\{3,}$/ syn match asciidocEntityRef /\\\@<!&[#a-zA-Z]\S\{-};/ -syn region asciidocLiteralParagraph start=/\(\%^\|\_^\n\)\@<=\s\+\S\+/ end=/\(^\(+\|--\)\?\s*$\)\@=/ contains=asciidocToDo +syn region asciidocLiteralParagraph start=/\(\%^\|\_^\s*\n\)\@<=\s\+\S\+/ end=/\(^\(+\|--\)\?\s*$\)\@=/ contains=asciidocToDo syn match asciidocURL /\\\@<!\<\(http\|https\|ftp\|file\|irc\):\/\/[^| \t]*\(\w\|\/\)/ syn match asciidocEmail /[\\.:]\@<!\(\<\|<\)\w\(\w\|[.-]\)*@\(\w\|[.-]\)*\w>\?[0-9A-Za-z_]\@!/ syn match asciidocAttributeRef /\\\@<!{\w\(\w\|[-,+]\)*\([=!@#$%?:].*\)\?}/ |