diff --git a/tools/wrc/parser.l b/tools/wrc/parser.l
index 2e04bc1f521897a360eb7fb58733d7c72d9958bf..58487a750c5d7a2eb99ed5cece9e7208e9055e8d 100644
--- a/tools/wrc/parser.l
+++ b/tools/wrc/parser.l
@@ -405,7 +405,7 @@ static struct keyword *iskeyword(char *kw)
 	 * and *only* in a filename. In this case, the second
 	 * rule will be reduced because it is longer.
 	 */
-[A-Za-z_0-9]+		{
+[A-Za-z_0-9.]+		{
 				struct keyword *tok = iskeyword(yytext);
 
 				if(tok)