fixes regression that caused pegs to not compile
This commit is contained in:
parent
80b8361187
commit
c2e04abcfa
2 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue