summary refs log tree commit diff
path: root/bin/hilex/hilex.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-28 23:48:24 -0500
committerJune McEnroe <june@causal.agency>2020-12-28 23:48:24 -0500
commitc382aaa0828072d208e8bb768c58ae5d0b9eb310 (patch)
treeb35dfc3ab07665bba9ae19819cc69a85cfc6719c /bin/hilex/hilex.h
parentGenerate Tag tokens for mdoc headings (diff)
downloadsrc-c382aaa0828072d208e8bb768c58ae5d0b9eb310.tar.gz
src-c382aaa0828072d208e8bb768c58ae5d0b9eb310.zip
Add hilex IRC formatter
Diffstat (limited to '')
-rw-r--r--bin/hilex/hilex.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/hilex/hilex.h b/bin/hilex/hilex.h
index 442094c8..e997b881 100644
--- a/bin/hilex/hilex.h
+++ b/bin/hilex/hilex.h
@@ -50,6 +50,16 @@ extern const struct Lexer LexC;
 extern const struct Lexer LexMdoc;
 extern const struct Lexer LexText;
 
+#define ENUM_OPTION \
+	X(Monospace, "monospace")
+
+enum Option {
+#define X(option, key) option,
+	ENUM_OPTION
+#undef X
+	OptionCap,
+};
+
 typedef void Header(const char *opts[]);
 typedef void Format(const char *opts[], enum Class class, const char *text);
 struct Formatter {
@@ -60,3 +70,4 @@ struct Formatter {
 
 extern const struct Formatter FormatANSI;
 extern const struct Formatter FormatDebug;
+extern const struct Formatter FormatIRC;