Hi Friedrich, I believe that many of these cases have been resolved in the development branch, which may not have been sent to the main repository yet (https://github.com/marshallward/vim-restructuredtext)
I tested your inline markup examples and I am seeing some issues with dashes (`-`) but the underscore and slash delims appear to be correct. There is a fixed list of characters which are allowed to follow the end of an inline markup. It appears that slash `/` is on this list but dash `-` is missing and is not being handled correctly. Underscore `_` is not allowed to follow and end-inline. For example, in rst2html: *hello*_*foobar* highlights as a single italic, <em>hello*_*foobar</em>. There are similar requirements for the start of an inline highlight. Again, dash and slash are permitted but underscore is not. I will try to resolve this in the vim-restructuredtext repo and then send a patch over to Vim. On Friday, 14 May 2021 at 08:59:10 UTC-4 Friedrich Romstedt wrote: > Hi Marshall, > Hi all, > > During the last couple of years some more issues related to ReST > markup in vim have accumulated in my pipeline; this email covers the > first of two more observations. > > My question is regarding *italicisation* and **bold face**. It is > probably described best by a set of Tests, together with their outcome > in vim-8.2.2845: > > *hello*-*foobar* > *hello*_*foobar* > *hello*/*foobar* > (In the first line, the *foobar* is not displayed italicised; > everything else is.) > > **hello**-**foobar** > **hello**_**foobar** > **hello**/**foobar** > (Same here: in the first line, **foobar** ins't printed bold-face; > everything else renders bold.) > > -*foobar* > _*foobar* > /*foobar* > (Only the last line renders with italicisation.) > > -**foobar** > _**foobar** > /**foobar** > (Same here: Only the last line is printed in bold face.) > > I stumbled upon this observations by the very first example > (*hello*-*foobar*). Is there a reason for this behaviour or is this > an issue? > > Best, > Friedrich > -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/8e209e1f-8912-492f-ad8d-2218058741bfn%40googlegroups.com.
