summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-03-21 14:41:31 -0400
committerpommicket <pommicket@gmail.com>2023-03-21 14:41:31 -0400
commit3e4c6c976ce17324bc689c39790740f1e6761f36 (patch)
treef29b6ac21c0a6ddd2e7887ca84b2a11a5811ecb9
parent600721070f2970b3386393ca93cb8dc53aedc240 (diff)
fix GLSL syntax highlighting (oops)
-rw-r--r--control2
-rw-r--r--syntax.c5
-rw-r--r--ted.h2
3 files changed, 6 insertions, 3 deletions
diff --git a/control b/control
index 235a8ec..a44bba7 100644
--- a/control
+++ b/control
@@ -1,5 +1,5 @@
Package: ted
-Version: 2.1
+Version: 2.1r1
Section: text
Priority: optional
Architecture: amd64
diff --git a/syntax.c b/syntax.c
index 05bf04b..f57f7c1 100644
--- a/syntax.c
+++ b/syntax.c
@@ -1937,6 +1937,9 @@ void syntax_highlight(SyntaxState *state, Language lang, const char32_t *line, u
static void syntax_highlight_c(SyntaxState *state, const char32_t *line, u32 line_len, SyntaxCharType *char_types) {
syntax_highlight_c_cpp(state, line, line_len, char_types, LANG_C);
}
+static void syntax_highlight_glsl(SyntaxState *state, const char32_t *line, u32 line_len, SyntaxCharType *char_types) {
+ syntax_highlight_c_cpp(state, line, line_len, char_types, LANG_GLSL);
+}
static void syntax_highlight_cpp(SyntaxState *state, const char32_t *line, u32 line_len, SyntaxCharType *char_types) {
syntax_highlight_c_cpp(state, line, line_len, char_types, LANG_CPP);
}
@@ -2066,7 +2069,7 @@ void syntax_register_builtin_languages(void) {
.name = "GLSL",
// not specified as of LSP 3.17, but this seems like the natural choice
.lsp_identifier = "glsl",
- .highlighter = syntax_highlight_html,
+ .highlighter = syntax_highlight_glsl,
},
{
.id = LANG_CSS,
diff --git a/ted.h b/ted.h
index 59bdf65..79bab2f 100644
--- a/ted.h
+++ b/ted.h
@@ -28,7 +28,7 @@ extern "C" {
#include "sdl-inc.h"
/// Version number
-#define TED_VERSION "2.1"
+#define TED_VERSION "2.1r1"
/// Version string
#define TED_VERSION_FULL "ted v. " TED_VERSION
/// Maximum path size ted handles.