diff options
author | June McEnroe <june@causal.agency> | 2020-12-28 23:48:24 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-12-28 23:48:24 -0500 |
commit | c382aaa0828072d208e8bb768c58ae5d0b9eb310 (patch) | |
tree | b35dfc3ab07665bba9ae19819cc69a85cfc6719c /bin/hilex/hilex.h | |
parent | Generate Tag tokens for mdoc headings (diff) | |
download | src-c382aaa0828072d208e8bb768c58ae5d0b9eb310.tar.gz src-c382aaa0828072d208e8bb768c58ae5d0b9eb310.zip |
Add hilex IRC formatter
Diffstat (limited to 'bin/hilex/hilex.h')
-rw-r--r-- | bin/hilex/hilex.h | 11 |
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; |