aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/macOS/highlighter.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-01-07 12:02:23 -0500
committerRoopesh Chander <roop@roopc.net>2019-01-14 14:52:34 +0530
commit64fe4158794484fe416a047a3f8f326602033ec8 (patch)
tree35e6da1ad3e81832b1a0a4048571c2cd675cb887 /WireGuard/WireGuard/UI/macOS/highlighter.h
parentAdded syntax highlighting conf textview (diff)
downloadwireguard-apple-64fe4158794484fe416a047a3f8f326602033ec8.tar.xz
wireguard-apple-64fe4158794484fe416a047a3f8f326602033ec8.zip
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>
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuard/UI/macOS/highlighter.h40
1 files changed, 21 insertions, 19 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/highlighter.h b/WireGuard/WireGuard/UI/macOS/highlighter.h
index 9368af6..d88638b 100644
--- a/WireGuard/WireGuard/UI/macOS/highlighter.h
+++ b/WireGuard/WireGuard/UI/macOS/highlighter.h
@@ -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);