From 8a357c270b32d41c2a721dc88197f0a8e35c47e8 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 7 Nov 2018 20:53:41 +0100 Subject: parser change: 'not' is always a unary operator; fixes #9574 --- compiler/lexer.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler') diff --git a/compiler/lexer.nim b/compiler/lexer.nim index 877369c2a..76cb88297 100644 --- a/compiler/lexer.nim +++ b/compiler/lexer.nim @@ -966,7 +966,7 @@ proc getPrecedence*(tok: TToken, strongSpaces: bool): int = of '?': result = 2 else: considerAsgn(2) of tkDiv, tkMod, tkShl, tkShr: result = 9 - of tkIn, tkNotin, tkIs, tkIsnot, tkNot, tkOf, tkAs: result = 5 + of tkIn, tkNotin, tkIs, tkIsnot, tkOf, tkAs: result = 5 of tkDotDot: result = 6 of tkAnd: result = 4 of tkOr, tkXor, tkPtr, tkRef: result = 3 -- cgit 1.4.1-2-gfad0