diff options
author | Charles Blake <cblake@csail.mit.edu> | 2015-02-09 09:57:39 -0500 |
---|---|---|
committer | Charles Blake <cblake@csail.mit.edu> | 2015-02-09 09:57:39 -0500 |
commit | 41794ccd5b764d13fbff2a2e5abd1f4966d4b335 (patch) | |
tree | d6c5bbd7f5f85bd7e967da156901a782de26d221 /compiler/parser.nim | |
parent | 1f3ce26421f73916aa978c67ab90cdf68218120d (diff) | |
parent | 629bbf5ebd5a426b5073339aa57db1f7a855b903 (diff) | |
download | Nim-41794ccd5b764d13fbff2a2e5abd1f4966d4b335.tar.gz |
Merge Nim into devel
Diffstat (limited to 'compiler/parser.nim')
-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. |