summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-04-20 13:59:10 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2021-04-20 13:59:10 -0400
commitf5bb2118eadc20402e69d575c9be8a02cf673caa (patch)
treee04d4853e6cdd1a8cf9415b35c800f0c534f9b3d /ted.h
parentda61efabb1b28c5500824a560c960a720a628de0 (diff)
HTML syntax highlighting
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index c05f8d3..6e61ea9 100644
--- a/ted.h
+++ b/ted.h
@@ -37,6 +37,10 @@ enum {
SYNTAX_STATE_MARKDOWN_CODE = 0x01u, // inside ``` ``` code section
};
+enum {
+ SYNTAX_STATE_HTML_COMMENT = 0x01u
+};
+
typedef u8 SyntaxState;
ENUM_U16 {
@@ -47,6 +51,7 @@ ENUM_U16 {
LANG_PYTHON,
LANG_TEX,
LANG_MARKDOWN,
+ LANG_HTML,
LANG_COUNT
} ENUM_U16_END(Language);
@@ -63,6 +68,7 @@ static LanguageName const language_names[] = {
{LANG_PYTHON, "Python"},
{LANG_TEX, "Tex"},
{LANG_MARKDOWN, "Markdown"},
+ {LANG_HTML, "HTML"},
};
static_assert_if_possible(arr_count(language_names) == LANG_COUNT)