Highlighter: use original file from contrib/examples/highlighter
This makes it easier to track updates and make diffs. Also, disable things we don't support in the NetworkExtension app.
This commit is contained in:
parent
3795a06e92
commit
1c7ae7a334
File diff suppressed because it is too large
Load Diff
|
@ -6,28 +6,30 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
enum highlight_type {
|
enum highlight_type {
|
||||||
HighlightSection,
|
HighlightSection,
|
||||||
HighlightKeytype,
|
HighlightKeytype,
|
||||||
HighlightKey,
|
HighlightKey,
|
||||||
HighlightCmd,
|
HighlightIP,
|
||||||
HighlightIP,
|
HighlightCidr,
|
||||||
HighlightCidr,
|
HighlightHost,
|
||||||
HighlightHost,
|
HighlightPort,
|
||||||
HighlightPort,
|
HighlightMTU,
|
||||||
HighlightTable,
|
HighlightKeepalive,
|
||||||
HighlightFwMark,
|
HighlightComment,
|
||||||
HighlightMTU,
|
HighlightDelimiter,
|
||||||
HighlightSaveConfig,
|
#ifndef MOBILE_WGQUICK_SUBSET
|
||||||
HighlightKeepalive,
|
HighlightTable,
|
||||||
HighlightComment,
|
HighlightFwMark,
|
||||||
HighlightDelimiter,
|
HighlightSaveConfig,
|
||||||
HighlightError,
|
HighlightCmd,
|
||||||
HighlightEnd
|
#endif
|
||||||
|
HighlightError,
|
||||||
|
HighlightEnd
|
||||||
};
|
};
|
||||||
|
|
||||||
struct highlight_span {
|
struct highlight_span {
|
||||||
enum highlight_type type;
|
enum highlight_type type;
|
||||||
size_t start, len;
|
size_t start, len;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct highlight_span *highlight_config(const char *config);
|
struct highlight_span *highlight_config(const char *config);
|
||||||
|
|
Loading…
Reference in New Issue