VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
13.94k stars 1.32k forks source link

Purescript comments #2302

Open karljs opened 6 years ago

karljs commented 6 years ago

Most Purescript packages rely on Pursuit to generate/read documentation and the comment syntax for that is -- | comment here rather than just -- comment. Running something like g q a p produces the wrong result for these comments.

-- | Long comment split
-- | across lines.

becomes something like

-- | Long comment split | across
-- lines

rather than the preferred

-- | Long comment split across
-- | lines
johnfn commented 6 years ago

It should be really simple to add the additional line here

https://github.com/VSCodeVim/Vim/blob/master/src/actions/operator.ts#L721

Just make sure it precedes the haskell -- comment so it takes precedence and all should be good.