summaryrefslogtreecommitdiff
path: root/lsp-write.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-28 18:10:34 -0500
committerpommicket <pommicket@gmail.com>2022-12-28 18:10:34 -0500
commit92c2f6c5db7606515948b233470181c119f7e308 (patch)
treee77c345cdfcc2e398d9395ec0fe262ce133d42b7 /lsp-write.c
parent8ef7a72c55e66c097c0130ab17e2062ef75e4723 (diff)
GLSL syntax highlighting
Diffstat (limited to 'lsp-write.c')
-rw-r--r--lsp-write.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lsp-write.c b/lsp-write.c
index 128b61b..4c9bce3 100644
--- a/lsp-write.c
+++ b/lsp-write.c
@@ -30,6 +30,9 @@ static const char *lsp_language_id(Language lang) {
return "latex";
case LANG_XML:
return "xml";
+ case LANG_GLSL:
+ // not specified as of LSP 3.17, but this seems like the natural choice
+ return "glsl";
case LANG_COUNT: break;
}
assert(0);