diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-04-20 13:59:10 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-04-20 13:59:10 -0400 |
commit | f5bb2118eadc20402e69d575c9be8a02cf673caa (patch) | |
tree | e04d4853e6cdd1a8cf9415b35c800f0c534f9b3d /ted.h | |
parent | da61efabb1b28c5500824a560c960a720a628de0 (diff) |
HTML syntax highlighting
Diffstat (limited to 'ted.h')
-rw-r--r-- | ted.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |