fixes regression that caused pegs to not compile

This commit is contained in:
Araq
2014-11-29 14:08:42 +01:00
parent 80b8361187
commit c2e04abcfa
2 changed files with 2 additions and 1 deletions

View File

@@ -962,6 +962,7 @@ proc builtinFieldAccess(c: PContext, n: PNode, flags: TExprFlags): PNode =
if s != nil:
if s.kind in OverloadableSyms:
result = symChoice(c, n, s, scClosed)
if result.kind == nkSym: result = semSym(c, n, s, flags)
else:
markUsed(n.sons[1].info, s)
result = semSym(c, n, s, flags)

View File

@@ -1467,7 +1467,7 @@ proc builtin(p: var PegParser): Peg =
of "W": result = charSet({'\1'..'\xff'} - {'a'..'z','A'..'Z','_','0'..'9'})
of "a": result = charSet({'a'..'z', 'A'..'Z'})
of "A": result = charSet({'\1'..'\xff'} - {'a'..'z', 'A'..'Z'})
of "ident": result = pegs.ident()
of "ident": result = pegs.ident
of "letter": result = unicodeLetter()
of "upper": result = unicodeUpper()
of "lower": result = unicodeLower()