From e095a2d6fb70e4712d0810a3e5399944f1e9d1ee Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Sat, 16 Oct 2021 06:08:38 +0900 Subject: [PATCH] lsfd: (filter) accept % char as a part of column name Signed-off-by: Masatake YAMATO --- misc-utils/lsfd-filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc-utils/lsfd-filter.c b/misc-utils/lsfd-filter.c index a520e7992e..16b0cb5645 100644 --- a/misc-utils/lsfd-filter.c +++ b/misc-utils/lsfd-filter.c @@ -21,7 +21,7 @@ /* * Definitions */ -#define COL_HEADER_EXTRA_CHARS ":-_" /* ??? */ +#define COL_HEADER_EXTRA_CHARS ":-_%" /* ??? */ #define GOT_ERROR(PARSERorFILTER)(*((PARSERorFILTER)->errmsg)) /* @@ -29,7 +29,7 @@ */ enum token_type { - TOKEN_NAME, /* [A-Za-z_][-_:A-Za-z0-9]* */ + TOKEN_NAME, /* [A-Za-z_][-_:%A-Za-z0-9]* */ TOKEN_STR, /* "...", '...' */ TOKEN_DEC, /* [1-9][0-9]+, NOTE: negative value is no dealt. */ TOKEN_HEX, /* 0x[0-9a-f]+ not implemented */ -- 2.47.3