vimwiki-backup / vimwiki

Automatically exported from code.google.com/p/vimwiki
1 stars 1 forks source link

Bug in highlighting URLs #414

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
(http://localhost)
{http://localhost}
[http://localhost]

In all these examples the trailing character is highlighted as part of the link 
(which is wrong).

Slackware64-14.0
vim version 7.3.645
vimwiki-2-1

Original issue reported on code.google.com by rwxrwx.m...@tut.by on 3 Jun 2013 at 6:21

GoogleCodeExporter commented 8 years ago
Trailing characters were cut in the above message. The example lines end in 
")", "}", "]" of course.

Original comment by rwxrwx.m...@tut.by on 3 Jun 2013 at 6:23

GoogleCodeExporter commented 8 years ago
What about 

(bla bla http://boom.com/?string_id=RE#DI)FF)

?

There was some type of "advanced" URL detection in vimwiki, but it still had 
bugs with various trailing characters. Thus we have made a simple one -- URL 
starts with protocol and lasts until space or EOL.

If you want "correct" highlighting for (http://localhost) use 
([[http://localhost]])

Original comment by habamax on 5 Jun 2013 at 7:33