summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-27 14:39:01 -0500
committerpommicket <pommicket@gmail.com>2022-12-27 14:39:01 -0500
commitc9907c20599728286e73115d11b46b169d10e1a3 (patch)
treeb1a287d830d8ee7e013e519df9b082485af1082c /ted.h
parenta11545e25cf2f65047158cc1fd7ed5a0f11a9fa0 (diff)
add typescript highlighting
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ted.h b/ted.h
index a33a1eb..ae02fac 100644
--- a/ted.h
+++ b/ted.h
@@ -79,6 +79,7 @@ typedef enum {
LANG_JAVA = 10,
LANG_GO = 11,
LANG_TED_CFG = 12, // like LANG_CONFIG, but with multiline strings.
+ LANG_TYPESCRIPT = 13,
LANG_COUNT
} Language;
@@ -97,10 +98,11 @@ static LanguageName const language_names[] = {
{LANG_MARKDOWN, "Markdown"},
{LANG_HTML, "HTML"},
{LANG_CONFIG, "Config"},
- {LANG_JAVASCRIPT, "Javascript"},
+ {LANG_JAVASCRIPT, "JavaScript"},
{LANG_JAVA, "Java"},
{LANG_GO, "Go"},
{LANG_TED_CFG, "TedCfg"},
+ {LANG_TYPESCRIPT, "TypeScript"},
};
static_assert_if_possible(arr_count(language_names) == LANG_COUNT)