From 51a65a419d34275a7e67c4cd11715bf5a4b57bee Mon Sep 17 00:00:00 2001 From: "Stephen M. Cameron" Date: Tue, 30 Sep 2014 08:44:24 -0500 Subject: [PATCH 1/1] 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 --- exp/expression-parser.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1