aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-09-06 01:01:01 +0000
committernyamatongwe <devnull@localhost>2000-09-06 01:01:01 +0000
commit7896d9a43bcf6a9a8a627dc542743ff1b41bd911 (patch)
tree9125f6b449b989f4b347c369a53ee057e1eb1e0e
parentc2c7fbf7f3631ad43170769ef131198c546b1abb (diff)
downloadscintilla-mirror-7896d9a43bcf6a9a8a627dc542743ff1b41bd911.tar.gz
Dots inside identirifers are now in the operator lexical class.
Added markus Gritsch to credits list.
-rw-r--r--doc/ScintillaHistory.html3
-rw-r--r--src/LexPython.cxx7
2 files changed, 10 insertions, 0 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html
index 42df3df7b..28ab5b8bf 100644
--- a/doc/ScintillaHistory.html
+++ b/doc/ScintillaHistory.html
@@ -119,6 +119,9 @@
<li>
Jan Dries
</li>
+ <li>
+ Markus Gritsch
+ </li>
</ul>
<p>
Sponsorship
diff --git a/src/LexPython.cxx b/src/LexPython.cxx
index df8b7085b..492d21c7d 100644
--- a/src/LexPython.cxx
+++ b/src/LexPython.cxx
@@ -33,6 +33,13 @@ static void ClassifyWordPy(unsigned int start, unsigned int end, WordList &keywo
chAttr = SCE_P_NUMBER;
else if (keywords.InList(s))
chAttr = SCE_P_WORD;
+ // make sure that dot-qualifiers inside the word are lexed correct
+ else for (unsigned int i = 0; i < end - start + 1; i++) {
+ if (styler[start + i] == '.') {
+ styler.ColourTo(start + i - 1, chAttr);
+ styler.ColourTo(start + i, SCE_P_OPERATOR);
+ }
+ }
styler.ColourTo(end, chAttr);
strcpy(prevWord, s);
}