aboutsummaryrefslogtreecommitdiff
path: root/sbin/hastd/token.l
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2011-05-20 11:10:39 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2011-05-20 11:10:39 +0000
commit496a87aa3080dc407e5a0c89766d50e97fec9e31 (patch)
treebff27ecf77654959ade0f93d2652b159aca3a06b /sbin/hastd/token.l
parentbdbd046b35f111958809338a2c0fff1fd4f1cdcf (diff)
downloadsrc-496a87aa3080dc407e5a0c89766d50e97fec9e31.tar.gz
src-496a87aa3080dc407e5a0c89766d50e97fec9e31.zip
Allow [ ] characters in strings. They might be used in IPv6 addresses.
MFC after: 3 weeks
Notes
Notes: svn path=/head/; revision=222117
Diffstat (limited to 'sbin/hastd/token.l')
-rw-r--r--sbin/hastd/token.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/hastd/token.l b/sbin/hastd/token.l
index 389dfedf6e2a..67c1e130e69d 100644
--- a/sbin/hastd/token.l
+++ b/sbin/hastd/token.l
@@ -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 */;