--- a/lexers/LexHTML.cxx
+++ b/lexers/LexHTML.cxx
@@ -443,11 +443,6 @@
 		break;
 	}
 	return Result;
-}
-
-static inline bool ishtmlwordchar(int ch) {
-	return !isascii(ch) ||
-		(isalnum(ch) || ch == '.' || ch == '-' || ch == '_' || ch == ':' || ch == '!' || ch == '#');
 }
 
 static inline bool issgmlwordchar(int ch) {