]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add precendence definitions for =~ and !~
authorAlan T. DeKok <aland@freeradius.org>
Sat, 28 May 2022 14:05:33 +0000 (10:05 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 3 Jun 2022 11:15:48 +0000 (07:15 -0400)
src/lib/unlang/xlat_expr.c

index 38c5e197a144a2fa886cec4b315007d4bcb58876..9c1ecf9b8a650e9aa32e19e760eb328ceadcb2b1 100644 (file)
@@ -835,7 +835,10 @@ static const int precedence[T_TOKEN_LAST] = {
        [T_MUL]         = P(8,0),
        [T_DIV]         = P(8,1),
 
-       [T_LBRACE]      = P(9,0),
+       [T_OP_REG_EQ]   = P(9,0),
+       [T_OP_REG_NE]   = P(9,0),
+
+       [T_LBRACE]      = P(10,0),
 };
 
 #define fr_sbuff_skip_whitespace(_x) \