vim-pandoc / vim-pandoc-legacy

[UNSUPPORTED/use vim-pandoc/vim-pandoc] vim bundle for pandoc users
143 stars 23 forks source link

Highlighting for Hard Line Breaks #12

Closed dsanson closed 13 years ago

dsanson commented 13 years ago

Can we add this back? Here are the old regexes:

" Newline, 2 spaces at the end of line means newline
syn match pdcNewLine /  $/

and then

hi link pdcNewLine      Error
fmoralesc commented 13 years ago

Sure (tested re-enabling it and it seems fine). It shouldn't be needed if the user enables hard line breaking, though, because then there are never spaces on the the end of lines.

fmoralesc commented 13 years ago

Commit b6eb674a5907540e0fcf89ed7342da512ebb3e19 fixes this issue.

dsanson commented 13 years ago

It shouldn't be needed if the user enables hard line breaking, though, because then there are never spaces on the the end of lines.

No, its still needed, because it is the way to tell pandoc to insert a hardbreak (for this reason, we should also support the "escaped linebreak" syntax:

this is a line\
and this is another.
fmoralesc commented 13 years ago

OK. Added support for escaped linebreaks in 17a881a2f3591f84650ad421a6a0317ed59b873a.