From 7a230a5e81d776fcac11ec9dbc38f00aa61ba237 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 14 Nov 2001 05:05:20 +0000 Subject: Made PHP keyword detection case insensitive. --- src/LexHTML.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/LexHTML.cxx') diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx index cb0d277cd..5622f476f 100644 --- a/src/LexHTML.cxx +++ b/src/LexHTML.cxx @@ -303,7 +303,7 @@ static void classifyWordHTPHP(unsigned int start, unsigned int end, WordList &ke char s[30 + 1]; unsigned int i = 0; for (; i < end - start + 1 && i < 30; i++) { - s[i] = styler[start + i]; + s[i] = static_cast(tolower(styler[start + i])); } s[i] = '\0'; if (keywords.InList(s)) -- cgit v1.2.3