updated for version 7.0222
diff --git a/src/charset.c b/src/charset.c
index 1e0e837..7c820d2 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -914,7 +914,7 @@
 # endif
     return (GET_CHARTAB(buf, *p) != 0);
 }
-#endif /* FEAT_SYN_HL */
+#endif
 
 /*
  * return TRUE if 'c' is a valid file-name character
@@ -1464,7 +1464,7 @@
     return p;
 }
 
-#if defined(FEAT_SYN_HL) || defined(PROTO)
+#if defined(FEAT_SYN_HL) || defined(FEAT_SPELL) || defined(PROTO)
 /*
  * skip over digits and hex characters
  */