summary refs log tree commit diff stats
path: root/compiler/parser.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/parser.nim')
-rw-r--r--compiler/parser.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim
index 07f5c9de9..c68c80b46 100644
--- a/compiler/parser.nim
+++ b/compiler/parser.nim
@@ -220,7 +220,7 @@ proc getPrecedence(tok: TToken, strongSpaces: bool): int =
   of tkIn, tkNotin, tkIs, tkIsnot, tkNot, tkOf, tkAs: result = 5
   of tkDotDot: result = considerStrongSpaces(6)
   of tkAnd: result = 4
-  of tkOr, tkXor: result = 3
+  of tkOr, tkXor, tkPtr, tkRef: result = 3
   else: result = -10
 
 proc isOperator(tok: TToken): bool =