From: Stephen M. Cameron Date: Tue, 30 Sep 2014 13:44:24 +0000 (-0500) Subject: Treat colons and commas as end of input in expression parser X-Git-Tag: fio-2.1.14~101^2~7 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=51a65a419d34275a7e67c4cd11715bf5a4b57bee Treat colons and commas as end of input in expression parser Just like a comment. This is to allow processing of lists of numbers separated by colons or commas. Also, fix the comment processing to require zero rather than one character after '#' Signed-off-by: Stephen M. Cameron Signed-off-by: Jens Axboe --- diff --git a/exp/expression-parser.l b/exp/expression-parser.l index bb80553e..c084db6a 100644 --- a/exp/expression-parser.l +++ b/exp/expression-parser.l @@ -109,7 +109,7 @@ bye return BYE; return SUFFIX; } [ \t] ; /* ignore whitespace */ -#.+ ; /* ignore comments */ +[#:,].* ; /* ignore comments, and everything after colons and commas */ [0-9]*[.][0-9]+ { int rc; double dval;