From: Karel Zak Date: Wed, 8 Nov 2023 10:42:11 +0000 (+0100) Subject: libsmartcols: (filter) add upper case EQ,NE,LE,LT,GT and GE operators X-Git-Tag: v2.40-rc1~151^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d17f7c2fa5efe433d4eb145db90f420b09e98f79;p=thirdparty%2Futil-linux.git libsmartcols: (filter) add upper case EQ,NE,LE,LT,GT and GE operators Signed-off-by: Karel Zak --- diff --git a/libsmartcols/src/filter-scanner.l b/libsmartcols/src/filter-scanner.l index 32d6ad7a2f..ee3ed0c86d 100644 --- a/libsmartcols/src/filter-scanner.l +++ b/libsmartcols/src/filter-scanner.l @@ -24,14 +24,14 @@ and|AND|"&&" return T_AND; or|OR|"||" return T_OR; "!"|not|NOT return T_NEG; -eq|"==" return T_EQ; -ne|"!=" return T_NE; +eq|EQ|"==" return T_EQ; +ne|NE|"!=" return T_NE; -le|"<=" return T_LE; -lt|"<" return T_LT; +le|LE|"<=" return T_LE; +lt|LT|"<" return T_LT; -ge|">=" return T_GE; -gt|">" return T_GT; +ge|GE|">=" return T_GE; +gt|GT">" return T_GT; "=~" return T_REG; "!~" return T_NREG;