From 9396cc9c1f5781c3aca8b3b9f064d1046734dd1b Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Tue, 25 Jun 2019 11:45:55 +1000 Subject: Bug [#2112]. Matlab lexer now treats keywords as case-sensitive. --- doc/ScintillaHistory.html | 4 ++++ lexers/LexMatlab.cxx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 6afe98657..b160a52c4 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -574,6 +574,10 @@ Feature #1295.
  • + Matlab lexer now treats keywords as case-sensitive. + Bug #2112. +
  • +
  • Platform layers should use InsertCharacter method to perform keyboard and IME input, replacing AddCharUTF method. Feature #1293. 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) { -- cgit v1.2.3