language change: 'generic' and 'atomic' are not keywords anymore
This commit is contained in:
parent
58187f2120
commit
cae5e33a4a
7 changed files with 17 additions and 25 deletions
|
|
@ -1140,13 +1140,9 @@ proc primary(p: var TParser, mode: TPrimaryMode): PNode =
|
|||
else:
|
||||
result = newNodeP(nkObjectTy, p)
|
||||
getTok(p)
|
||||
of tkGeneric, tkConcept:
|
||||
of tkConcept:
|
||||
if mode == pmTypeDef:
|
||||
let wasGeneric = p.tok.tokType == tkGeneric
|
||||
result = parseTypeClass(p)
|
||||
# hack so that it's remembered and can be marked as deprecated in
|
||||
# sem'check:
|
||||
if wasGeneric: result.flags.incl nfBase2
|
||||
else:
|
||||
parMessage(p, errInvalidToken, p.tok)
|
||||
of tkStatic:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue