aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2015-07-06 09:02:49 +1000
committerNeil <nyamatongwe@gmail.com>2015-07-06 09:02:49 +1000
commit2bee730e6e5b305e0dde8ac43520e730fba48331 (patch)
tree05f9bd649203cde53603f9fa597b9e902b368656
parent8e67a97764bbc58ff2513f3119019182cbef9479 (diff)
downloadscintilla-mirror-2bee730e6e5b305e0dde8ac43520e730fba48331.tar.gz
SCI_SETIDENTIFIERS resets styling ensuring any added identifier are highlighted.
-rw-r--r--doc/ScintillaHistory.html3
-rw-r--r--src/ScintillaBase.cxx1
2 files changed, 4 insertions, 0 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html
index 1789ccc7e..749a2fe26 100644
--- a/doc/ScintillaHistory.html
+++ b/doc/ScintillaHistory.html
@@ -509,6 +509,9 @@
SciTE properties files now discard trailing white space on variable names.
</li>
<li>
+ Calling SCI_SETIDENTIFIERS resets styling to ensure any added identifier are highlighted.
+ </li>
+ <li>
On Cocoa fix problems with positioning of autocompletion lists near screen edge
or under dock. Cancel autocompletion when window moved.
<a href="http://sourceforge.net/p/scintilla/bugs/1740/">Bug #1740</a>.
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx
index 3d908d026..379fcc943 100644
--- a/src/ScintillaBase.cxx
+++ b/src/ScintillaBase.cxx
@@ -739,6 +739,7 @@ void LexState::FreeSubStyles() {
void LexState::SetIdentifiers(int style, const char *identifiers) {
if (instance && (interfaceVersion >= lvSubStyles)) {
static_cast<ILexerWithSubStyles *>(instance)->SetIdentifiers(style, identifiers);
+ pdoc->ModifiedAt(0);
}
}