Changing the rule for arrow like operators again.
This commit is contained in:
parent
d71f1b98e0
commit
34997292f4
4 changed files with 12 additions and 12 deletions
|
|
@ -212,7 +212,7 @@ proc getPrecedence(tok: TToken, strongSpaces: bool): int =
|
|||
let relevantChar = tok.ident.s[0]
|
||||
|
||||
# arrow like?
|
||||
if L > 1 and tok.ident.s[L-1] == '>' and tok.ident.s[0] in {'-', '='}:
|
||||
if L > 1 and tok.ident.s[^1] == '>' and tok.ident.s[^2] in {'-', '~', '='}:
|
||||
return considerStrongSpaces(1)
|
||||
|
||||
template considerAsgn(value: expr) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue