Author: pjd
Date: Fri May 20 11:10:39 2011
New Revision: 222117
URL: http://svn.freebsd.org/changeset/base/222117

Log:
  Allow [ ] characters in strings. They might be used in IPv6 addresses.
  
  MFC after:    3 weeks

Modified:
  head/sbin/hastd/token.l

Modified: head/sbin/hastd/token.l
==============================================================================
--- head/sbin/hastd/token.l     Fri May 20 11:09:02 2011        (r222116)
+++ head/sbin/hastd/token.l     Fri May 20 11:10:39 2011        (r222117)
@@ -68,7 +68,7 @@ sha256                        { DP; return SHA256; }
 hole                   { DP; return HOLE; }
 lzf                    { DP; return LZF; }
 [0-9]+                 { DP; yylval.num = atoi(yytext); return NUM; }
-[a-zA-Z0-9\.\-_/\:]+   { DP; yylval.str = strdup(yytext); return STR; }
+[a-zA-Z0-9\.\-_/\:\[\]]+ { DP; yylval.str = strdup(yytext); return STR; }
 \{                     { DP; depth++; return OB; }
 \}                     { DP; depth--; return CB; }
 #.*$                   /* ignore comments */;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to