summaryrefslogtreecommitdiffstats
path: root/yql/essentials/tools/yql_highlight/generator_json.cpp
blob: 846d2f85d2d22a4a7840e3975df1411443a22008 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "generator_json.h"

#include "json.h"

#include <yql/essentials/sql/v1/highlight/sql_highlight_json.h>

namespace NSQLHighlight {

    IGenerator::TPtr MakeJsonGenerator() {
        return MakeOnlyFileGenerator([](IOutputStream& out, const THighlighting& highlighting, bool /* ansi */) {
            Print(out, ToJson(highlighting));
        });
    }

} // namespace NSQLHighlight