rc markdown: Fix bullet highlighting

This commit prevents the lines following the one that holds the bullet
from being highlighted with the `bullet` face when they're indented:

- The bullet is highlighted properly, so is this sentence
  but this line the ones that would follow are not

Fixes #3582
This commit is contained in:
Frank LENORMAND 2020-10-23 16:24:12 +03:00
parent ba02c1d822
commit ae9088f192

View File

@ -59,9 +59,9 @@ add-highlighter shared/markdown/codeblock region -match-capture \
^(\h*)```\h*$ \ ^(\h*)```\h*$ \
fill meta fill meta
add-highlighter shared/markdown/listblock region ^\h*[-*]\s ^\h*((?=[-*])|$) regions add-highlighter shared/markdown/listblock region ^\h*[-*]\s ^\h*((?=[-*])|$) group
add-highlighter shared/markdown/listblock/marker region \A [-*]\s fill bullet add-highlighter shared/markdown/listblock/ ref markdown/inline
add-highlighter shared/markdown/listblock/content default-region ref markdown/inline add-highlighter shared/markdown/listblock/marker regex ^\h*([-*])\s 1:bullet
add-highlighter shared/markdown/inline/code region -match-capture (`+) (`+) fill mono add-highlighter shared/markdown/inline/code region -match-capture (`+) (`+) fill mono