kakoune/src/highlighters.hh

27 lines
654 B
C++
Raw Normal View History

#ifndef highlighters_hh_INCLUDED
#define highlighters_hh_INCLUDED
#include "color.hh"
2013-04-09 20:05:40 +02:00
#include "highlighter.hh"
namespace Kakoune
{
void register_highlighters();
struct InclusiveBufferRange{ BufferCoord first, last; };
inline bool operator==(const InclusiveBufferRange& lhs, const InclusiveBufferRange& rhs)
{
return lhs.first == rhs.first and lhs.last == rhs.last;
}
String option_to_string(InclusiveBufferRange range);
void option_from_string(StringView str, InclusiveBufferRange& opt);
using LineAndFlag = std::tuple<LineCount, String>;
using RangeAndString = std::tuple<InclusiveBufferRange, String>;
}
#endif // highlighters_hh_INCLUDED