Skip to content

Commit

Permalink
Fix text formatting when it contains URL
Browse files Browse the repository at this point in the history
This patch fixes the bug when if a URL is used within formatted text
(bold, italic, footnote and so on) it prevents the text from proper
highlighting because of double slashes in the URL (http://...) which are
recognized by vim as starting of a new italic region.
  • Loading branch information
vzh committed Apr 6, 2012
1 parent a6c83eb commit 45822e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions syntax/dokuwiki.vim
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ syn match dokuwikiEntities "\((c)\)\|\((tm)\)\|\((r)\)\|\(\.\.\.\)" contains=@No
"Cluster most common items
syn cluster dokuwikiTextItems contains=dokuwikiBold,dokuwikiItalic,dokuwikiUnderlined,dokuwikiMonospaced,dokuwikiStrikethrough
syn cluster dokuwikiTextItems add=dokuwikiSubscript,dokuwikiSuperscript,dokuwikiSmiley,dokuwikiEntities
syn cluster dokuwikiTextItems add=dokuwikiExternalLink,dokuwikiInternalLink
syn cluster dokuwikiNoneTextItem contains=ALLBUT,@dokuwikiTextItems

" Links: http://github.com/splitbrain/dokuwiki/blob/master/conf/scheme.conf
Expand Down

0 comments on commit 45822e5

Please sign in to comment.