From 4270edac726eeff0039af09fbd19e220f1a8c712 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 24 Feb 2010 08:10:23 +0000 Subject: Bug #2956543, R Lexer is case insensitive for keywords --- src/LexR.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/LexR.cxx b/src/LexR.cxx index 67e779f55..cabbf5788 100644 --- a/src/LexR.cxx +++ b/src/LexR.cxx @@ -77,9 +77,9 @@ static void ColouriseRDoc(unsigned int startPos, int length, int initStyle, Word sc.SetState(SCE_R_DEFAULT); } } else if (sc.state == SCE_R_IDENTIFIER) { - if (!IsAWordChar(sc.ch) || (sc.ch == '.')) { + if (!IsAWordChar(sc.ch)) { char s[100]; - sc.GetCurrentLowered(s, sizeof(s)); + sc.GetCurrent(s, sizeof(s)); if (keywords.InList(s)) { sc.ChangeState(SCE_R_KWORD); } else if (keywords2.InList(s)) { -- cgit v1.2.3