vim-pandoc-syntax
vim-pandoc-syntax copied to clipboard
Link ending on close paren
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.