JCF2: Support nested procedure types. Issue #31823, patch from CCRDude.

git-svn-id: trunk@54963 -
This commit is contained in:
juha 2017-05-18 08:36:48 +00:00
parent 4676d39ba2
commit 19d467d3e1
2 changed files with 8 additions and 0 deletions

View File

@ -1193,6 +1193,12 @@ begin
RecogniseGenericType;
end;
if fcTokenList.FirstSolidTokenType = ttIs then
begin
Recognise(ttIs);
Recognise(ttNested);
end;
// the type can be deprecated
if fcTokenList.FirstSolidTokenType = ttDeprecated then
Recognise(ttDeprecated);

View File

@ -191,6 +191,7 @@ type
ttGeneric,
ttCVar,
ttNostackframe,
ttNested,
// used in asm
ttOffset,
ttPtr,
@ -687,6 +688,7 @@ begin
AddKeyword('cvar', wtReservedWordDirective, ttCVar);
AddKeyword('nostackframe', wtReservedWordDirective, ttNostackframe);
AddKeyword('nested', wtReservedWordDirective, ttNested);
// asm
AddKeyword('offset', wtReservedWordDirective, ttOffset);