Don't set invalid text properties
This commit is contained in:
parent
c5f1bc5abe
commit
d2de526522
|
@ -158,7 +158,7 @@ This must not include any capturing groups."
|
|||
(not
|
||||
(re-search-forward
|
||||
(rx point (syntax comment-start)) nil t))))))))))
|
||||
(when multiline
|
||||
(when (and multiline (< markup-start markup-end))
|
||||
(put-text-property markup-start markup-end 'font-lock-multiline t))
|
||||
(set-match-data (and markup-start (list markup-start markup-end)))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue