summaryrefslogtreecommitdiff
path: root/lsp-write.c
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 /lsp-write.c
parentdce1a94e3be8dc4b702d02d901d9b38c6f6a41ce (diff)
syntax highlighting for JSON, and XML as a separate language
Diffstat (limited to 'lsp-write.c')
-rw-r--r--lsp-write.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lsp-write.c b/lsp-write.c
index edd4934..128b61b 100644
--- a/lsp-write.c
+++ b/lsp-write.c
@@ -12,6 +12,8 @@ static const char *lsp_language_id(Language lang) {
return "java";
case LANG_JAVASCRIPT:
return "javascript";
+ case LANG_JSON:
+ return "json";
case LANG_TYPESCRIPT:
return "typescript";
case LANG_MARKDOWN:
@@ -26,6 +28,8 @@ static const char *lsp_language_id(Language lang) {
return "html";
case LANG_TEX:
return "latex";
+ case LANG_XML:
+ return "xml";
case LANG_COUNT: break;
}
assert(0);