svn commit: r222117 - head/sbin/hastd
Pawel Jakub Dawidek
pjd at FreeBSD.org
Fri May 20 11:10:39 UTC 2011
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 */;
More information about the svn-src-head
mailing list