../src/LexCaml.cxx:278:12: error: assigning to 'char *' from incompatible type 'const char *' || ((o = strchr(")]};,\'\"`#", ch)) != 0)/* "termination" chars */ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ Reported by: pkg-fallout
11 lines
471 B
C++
11 lines
471 B
C++
--- scintilla/src/LexCaml.cxx.orig 2005-05-27 03:30:23 UTC
|
|
+++ scintilla/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 */) {
|