diff options
author | Araq <rumpf_a@web.de> | 2015-02-08 13:37:22 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-02-08 13:38:06 +0100 |
commit | c91ca82a43917163f00cf86e59d80a8909dca80a (patch) | |
tree | a1c90a80134dd1eabe2b71089e121601cec62abc /compiler | |
parent | 52e297c4e186ad3c28583a5fd8a2a782cee1aed3 (diff) | |
download | Nim-c91ca82a43917163f00cf86e59d80a8909dca80a.tar.gz |
fixes #2073; language spec change: arrow like operators are not right associative anymore
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/parser.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim index aae0ce7f9..f249b37c8 100644 --- a/compiler/parser.nim +++ b/compiler/parser.nim @@ -198,8 +198,8 @@ proc isSigilLike(tok: TToken): bool {.inline.} = proc isRightAssociative(tok: TToken): bool {.inline.} = ## Determines whether the token is right assocative. - result = tok.tokType == tkOpr and (tok.ident.s[0] == '^' or - (let L = tok.ident.s.len; L > 1 and tok.ident.s[L-1] == '>')) + result = tok.tokType == tkOpr and tok.ident.s[0] == '^' + # or (let L = tok.ident.s.len; L > 1 and tok.ident.s[L-1] == '>')) proc getPrecedence(tok: TToken, strongSpaces: bool): int = ## Calculates the precedence of the given token. |