Kaydet (Commit) f7c73992 authored tarafından Enrico Tröger's avatar Enrico Tröger

Backport R lexer from Scintilla CVS to fix case sensitive keywords (Scintilla bug #2956543).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4708 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 40b658e5
2010-02-28 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* scintilla/LexR.cxx:
Backport R lexer from Scintilla CVS to fix case sensitive keywords
(Scintilla bug #2956543).
2010-02-28 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
* src/ui_utils.c:
......
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment