vim-pandoc-syntax icon indicating copy to clipboard operation
vim-pandoc-syntax copied to clipboard

Link ending on close paren

Open jaspertravers opened this issue 7 years ago • 0 comments

This link [John McCarthy](https://en.wikipedia.org/wiki/John_McCarthy_(computer_scientist)) is closing on the first close paren, even though that is part of the link - rather than the closing of the syntax . I suppose that the link syntax should close on the last paren in a line, not the first it hits? Unsure of how to accomplish that. The related code appears to be <PLUGIN_FOLDER>/vim-pandoc-syntax/syntax/pandoc.vim beginning at line 254. Specifically syn region pandocReferenceURL matchgroup=pandocOperator start=/\]\@1<=(/ end=/)/ keepend

running gx on the link does not open the correct page because the link is ending at the first paren and then wikipedia doesn't redirect correctly.

jaspertravers avatar Oct 03 '18 19:10 jaspertravers