Changing the rule for arrow like operators again.

This commit is contained in:
ReneSac 2015-04-10 23:59:17 -03:00
commit 34997292f4
4 changed files with 12 additions and 12 deletions

View file

@ -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) =