summaryrefslogtreecommitdiff
path: root/src/display_buffer.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2019-11-28 20:22:40 +1100
committerMaxime Coste <mawww@kakoune.org>2019-11-28 20:23:52 +1100
commit2904d1342011b8b5e467f0eb0b1bd110f9a76c05 (patch)
treeca6db4c9bdc856d08201c2ff541a93851e2d6d15 /src/display_buffer.cc
parentfc9e0e8c6ae866674f494e366ba548cb02282667 (diff)
Add a {\} marker to disable markup processing
Diffstat (limited to 'src/display_buffer.cc')
-rw-r--r--src/display_buffer.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/display_buffer.cc b/src/display_buffer.cc
index e7e2da54..7df0aa1e 100644
--- a/src/display_buffer.cc
+++ b/src/display_buffer.cc
@@ -280,6 +280,11 @@ DisplayLine parse_display_line(StringView line, const FaceRegistry& faces, const
// closing is now at the first char of "}}", advance it to the second
++closing;
}
+ else if (closing == it+2 and *(it+1) == '\\')
+ {
+ pos = closing + 1;
+ break;
+ }
else
face = faces[{it+1, closing}];
it = closing;