Highlighters: move HighlighterParameters definition from highlighter_registry.hh to highlighter.hh
This commit is contained in:
parent
7599edffa9
commit
5092456186
|
@ -1,7 +1,9 @@
|
||||||
#ifndef highlighter_hh_INCLUDED
|
#ifndef highlighter_hh_INCLUDED
|
||||||
#define highlighter_hh_INCLUDED
|
#define highlighter_hh_INCLUDED
|
||||||
|
|
||||||
|
#include <string>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
namespace Kakoune
|
namespace Kakoune
|
||||||
{
|
{
|
||||||
|
@ -15,6 +17,8 @@ class DisplayBuffer;
|
||||||
|
|
||||||
typedef std::function<void (DisplayBuffer& display_buffer)> HighlighterFunc;
|
typedef std::function<void (DisplayBuffer& display_buffer)> HighlighterFunc;
|
||||||
typedef std::pair<std::string, HighlighterFunc> HighlighterAndId;
|
typedef std::pair<std::string, HighlighterFunc> HighlighterAndId;
|
||||||
|
typedef std::vector<std::string> HighlighterParameters;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,6 @@ namespace Kakoune
|
||||||
|
|
||||||
class Window;
|
class Window;
|
||||||
|
|
||||||
typedef std::vector<std::string> HighlighterParameters;
|
|
||||||
|
|
||||||
typedef std::function<HighlighterAndId (Window& window,
|
typedef std::function<HighlighterAndId (Window& window,
|
||||||
const HighlighterParameters& params)> HighlighterFactory;
|
const HighlighterParameters& params)> HighlighterFactory;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user