aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/LexCaml.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexCaml.cxx b/src/LexCaml.cxx
index bb069e958..2d11ad6cc 100644
--- a/src/LexCaml.cxx
+++ b/src/LexCaml.cxx
@@ -273,7 +273,7 @@ void ColouriseCamlDoc(
case SCE_CAML_OPERATOR: {
// [try to] interpret as [additional] operator char
- char* o = 0;
+ const char* o = 0;
if (iscaml(ch) || isspace(ch) /* ident or whitespace */
|| ((o = strchr(")]};,\'\"`#", ch)) != 0)/* "termination" chars */
|| !strchr("!$%&*+-./:<=>?@^|~", ch)/* "operator" chars */) {