1
0
mirror of https://github.com/scopatz/nanorc synced 2024-11-23 17:15:40 +01:00

Fixing quotes that span more than one line.

To break out of a quote-block in markdown, one has to have two line-breaks. It's the same as usual paragraphs, so having only one line-break results in it being collapsed as a single space. To represent that behavior here, I'm using start-end, with the previous match being the "start", and a blank line (^$) being the "end".
This commit is contained in:
TUSF 2017-12-20 23:49:51 -06:00 committed by GitHub
parent 43dd59ad36
commit 8d01fc00f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@ syntax "Markdown" "\.(md|mkd|mkdn|markdown)$"
color cyan ".*[ :]\|[ :].*"
# quotes
color brightblack start="^>" end="^$"
color brightblack "^>.*"
# Emphasis