Date: Fri, 20 May 2011 11:10:39 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r222117 - head/sbin/hastd Message-ID: <201105201110.p4KBAd2r081420@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 */;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105201110.p4KBAd2r081420>