-
- Notifications
You must be signed in to change notification settings - Fork 106
Closed
Description
The compound operator *= followed by a negative number is incorrectly lexed as a single token *=-:
Error: expected semicolon or right parenthesis ╭─[ws.jq] │ 166 │ .n = 0 | match_char(parse_num; parse_num | .n*=-1; .) | ┆ ─┬─ ┆ │ ┆ ╰───────── unexpected token ────╯ It can be worked around by adding a space:
- .n = 0 | match_char(parse_num; parse_num | .n*=-1; .) | + .n = 0 | match_char(parse_num; parse_num | .n*= -1; .) |(Seen in ws.jq)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels