wip: update TIMEOUT to double.
@@ -151,6 +151,7 @@ VALID_NODE = r"\w+"
NUM = r"\d+"
NNUM = r"-?\+?\(?\[?(\d+|inf)" # number cloud be negative
_FLOAT = r"-?(\d|\.|e)+"
+DOUBLE = r"\d*(\.\d+)?"
LEXNUM = r"(\[\w+)|(\(\w+)|(\+)|(-)"
SLOT = rf"(?P<slot>{VALID_SLOT})"
@@ -236,6 +237,16 @@ LEXMAX = rf"(?P<lexmax>{LEXNUM})"
WEIGHTS = rf"(?P<weights>{_FLOAT}(\s+{_FLOAT})*)"
IP_PORT = rf"(?P<ip_port>{IP}:{PORT})"
HOST = rf"(?P<host>{VALID_TOKEN})"
+MIN = fr"(?P<min>{NNUM})"
+MAX = fr"(?P<max>{NNUM})"
+POSITION = fr"(?P<position>{NNUM})"
+TIMEOUT = fr"(?P<timeout>{DOUBLE})"
+SCORE = fr"(?P<score>{_FLOAT})"
+LEXMIN = fr"(?P<lexmin>{LEXNUM})"
+LEXMAX = fr"(?P<lexmax>{LEXNUM})"
+WEIGHTS = fr"(?P<weights>{_FLOAT}(\s+{_FLOAT})*)"
+IP_PORT = fr"(?P<ip_port>{IP}:{PORT})"
+HOST = fr"(?P<host>{VALID_TOKEN})"
# const choices
FAILOVERCHOICE = rf"(?P<failoverchoice>{c('failoverchoice')})"
