MCPcopy Create free account
hub / github.com/WheretIB/nullc / ColorCodeCallback

Class ColorCodeCallback

Colorer.cpp:16–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14using namespace supspi;
15
16class ColorCodeCallback
17{
18public:
19 ColorCodeCallback()
20 {
21 colorer = NULL;
22 style = COLOR_CODE;
23 }
24 ColorCodeCallback(Colorer* col, int nStyle)
25 {
26 colorer = col;
27 style = nStyle;
28 }
29
30 void operator()(const char* start, const char* end)
31 {
32 colorer->ColorCode(style, start, end);
33 }
34 void operator()(int style, const char* start, const char* end)
35 {
36 colorer->ColorCode(style, start, end);
37 }
38private:
39 Colorer *colorer;
40 int style;
41};
42
43namespace ColorerGrammar
44{

Callers 1

ColorerMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected