aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZufu Liu <unknown>2019-06-25 11:45:55 +1000
committerZufu Liu <unknown>2019-06-25 11:45:55 +1000
commit1befbf9528f9d44e62a17f50f4b6da3f8691074d (patch)
tree2184819378dc23ba884c8cebe80b9380f816b601
parent0ca537117555a617536bf70cc176525484611be5 (diff)
downloadscintilla-mirror-1befbf9528f9d44e62a17f50f4b6da3f8691074d.tar.gz
Backport: Bug [#2112]. Matlab lexer now treats keywords as case-sensitive.
Backport of changeset 7604:f065b241925e.
-rw-r--r--doc/ScintillaHistory.html4
-rw-r--r--lexers/LexMatlab.cxx2
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html
index 2f7a4e106..5965e12ec 100644
--- a/doc/ScintillaHistory.html
+++ b/doc/ScintillaHistory.html
@@ -563,6 +563,10 @@
<a href="https://sourceforge.net/p/scintilla/feature-requests/1295/">Feature #1295</a>.
</li>
<li>
+ Matlab lexer now treats keywords as case-sensitive.
+ <a href="https://sourceforge.net/p/scintilla/bugs/2112/">Bug #2112</a>.
+ </li>
+ <li>
Platform layers should use InsertCharacter method to perform keyboard and IME input, replacing
AddCharUTF method.
<a href="https://sourceforge.net/p/scintilla/feature-requests/1293/">Feature #1293</a>.
diff --git a/lexers/LexMatlab.cxx b/lexers/LexMatlab.cxx
index a36a99502..3d08c9a33 100644
--- a/lexers/LexMatlab.cxx
+++ b/lexers/LexMatlab.cxx
@@ -155,7 +155,7 @@ static void ColouriseMatlabOctaveDoc(
} else if (sc.state == SCE_MATLAB_KEYWORD) {
if (!isalnum(sc.ch) && sc.ch != '_') {
char s[100];
- sc.GetCurrentLowered(s, sizeof(s));
+ sc.GetCurrent(s, sizeof(s));
if (keywords.InList(s)) {
if (strcmp ("end", s) == 0 && allow_end_op) {