summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-28 17:53:22 -0500
committerpommicket <pommicket@gmail.com>2022-12-28 17:53:22 -0500
commit8ef7a72c55e66c097c0130ab17e2062ef75e4723 (patch)
tree06a83cdddb4179b78292d6c5bb5a30b607551702 /ted.h
parentdce1a94e3be8dc4b702d02d901d9b38c6f6a41ce (diff)
syntax highlighting for JSON, and XML as a separate language
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index befc4e2..ecc5fda 100644
--- a/ted.h
+++ b/ted.h
@@ -80,6 +80,8 @@ typedef enum {
LANG_GO = 11,
LANG_TED_CFG = 12, // like LANG_CONFIG, but with multiline strings.
LANG_TYPESCRIPT = 13,
+ LANG_JSON = 14,
+ LANG_XML = 15,
LANG_COUNT
} Language;
@@ -103,6 +105,8 @@ static LanguageName const language_names[] = {
{LANG_GO, "Go"},
{LANG_TED_CFG, "TedCfg"},
{LANG_TYPESCRIPT, "TypeScript"},
+ {LANG_JSON, "JSON"},
+ {LANG_XML, "XML"},
};
static_assert_if_possible(arr_count(language_names) == LANG_COUNT)