home/src/filter.hh
2012-04-14 01:17:09 +00:00

23 lines
490 B
C++

#ifndef filter_hh_INCLUDED
#define filter_hh_INCLUDED
#include "string.hh"
#include <functional>
namespace Kakoune
{
class Buffer;
class Modification;
// A Filter is a function which is applied to a Buffer and a pending
// Modification in order to mutate the Buffer or the Modification
// prior to it's application.
typedef std::function<void (Buffer& buffer, Modification& modification)> FilterFunc;
typedef std::pair<String, FilterFunc> FilterAndId;
}
#endif // filter_hh_INCLUDED