summaryrefslogtreecommitdiff
path: root/editors/fxite/files/patch-src_scidoc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editors/fxite/files/patch-src_scidoc.cpp')
-rw-r--r--editors/fxite/files/patch-src_scidoc.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/editors/fxite/files/patch-src_scidoc.cpp b/editors/fxite/files/patch-src_scidoc.cpp
new file mode 100644
index 000000000000..03092bb5f720
--- /dev/null
+++ b/editors/fxite/files/patch-src_scidoc.cpp
@@ -0,0 +1,14 @@
+--- src/scidoc.cpp.orig 2013-10-03 09:22:51 UTC
++++ src/scidoc.cpp
+@@ -620,7 +620,11 @@ bool SciDoc::SetLanguageForHeader(const FXString &fn)
+ } else {
+ // Take a wild guess - if the file contains the word "class" it's probably C++
+ const char *content=(const char*)(sendMessage(SCI_GETCHARACTERPOINTER,0,0));
++#ifdef FOX_1_7_50_OR_NEWER
++ if (FXRex("\\<class\\>").search(content,strlen(content),0,strlen(content))>=0) {
++#else
+ if (FXRex("\\<class\\>").match(content)) {
++#endif
+ setLanguage("cpp");
+ } else {
+ setLanguage("c");