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. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
59bfa7f1df
commit
64fe415879
File diff suppressed because it is too large
Load Diff
|
@ -6,28 +6,30 @@
|
|||
#include <sys/types.h>
|
||||
|
||||
enum highlight_type {
|
||||
HighlightSection,
|
||||
HighlightKeytype,
|
||||
HighlightKey,
|
||||
HighlightCmd,
|
||||
HighlightIP,
|
||||
HighlightCidr,
|
||||
HighlightHost,
|
||||
HighlightPort,
|
||||
HighlightTable,
|
||||
HighlightFwMark,
|
||||
HighlightMTU,
|
||||
HighlightSaveConfig,
|
||||
HighlightKeepalive,
|
||||
HighlightComment,
|
||||
HighlightDelimiter,
|
||||
HighlightError,
|
||||
HighlightEnd
|
||||
HighlightSection,
|
||||
HighlightKeytype,
|
||||
HighlightKey,
|
||||
HighlightIP,
|
||||
HighlightCidr,
|
||||
HighlightHost,
|
||||
HighlightPort,
|
||||
HighlightMTU,
|
||||
HighlightKeepalive,
|
||||
HighlightComment,
|
||||
HighlightDelimiter,
|
||||
#ifndef MOBILE_WGQUICK_SUBSET
|
||||
HighlightTable,
|
||||
HighlightFwMark,
|
||||
HighlightSaveConfig,
|
||||
HighlightCmd,
|
||||
#endif
|
||||
HighlightError,
|
||||
HighlightEnd
|
||||
};
|
||||
|
||||
struct highlight_span {
|
||||
enum highlight_type type;
|
||||
size_t start, len;
|
||||
enum highlight_type type;
|
||||
size_t start, len;
|
||||
};
|
||||
|
||||
struct highlight_span *highlight_config(const char *config);
|
||||
|
|
Loading…
Reference in New Issue