From 8dcffd8f5a4a29d89716c114214d24803fe93d9f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 17 Dec 2015 04:07:09 +0000 Subject: Initial, WIP spelling implementation Add a ranges highlighter that takes a timestamped list of ranges and associated face. Add a spell.kak file that uses aspell pipe interface to fill a range-faces option. --- src/display_buffer.hh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/display_buffer.hh') diff --git a/src/display_buffer.hh b/src/display_buffer.hh index 177a5920..14e7044e 100644 --- a/src/display_buffer.hh +++ b/src/display_buffer.hh @@ -13,6 +13,9 @@ namespace Kakoune class Buffer; struct BufferRange{ ByteCoord begin, end; }; +String option_to_string(BufferRange range); +void option_from_string(StringView str, BufferRange& opt); + inline bool operator==(const BufferRange& lhs, const BufferRange& rhs) { return lhs.begin == rhs.begin and lhs.end == rhs.end; -- cgit v1.2.3