diff --git a/h3_token_weights.py b/h3_token_weights.py index 26d0524b..10e68a7a 100644 --- a/h3_token_weights.py +++ b/h3_token_weights.py @@ -67,8 +67,10 @@ def parse(text: str): # (phrase@2.0-3.5) / (phrase:1.5@2.0-3.5): a TIMED phrase. Seconds from the scene start. +# The phrase may contain `:` and `@` (shortcut replacements do): only a `:number` directly +# before the `@t0-t1)` tail is a weight. Parentheses inside the phrase are still not allowed. _TIMED = re.compile( - r"(?