mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 09:19:32 +02:00
JCF: Support keywords "experimental" and "unimplemented". Issue #27275, patch from BrunoK.
git-svn-id: trunk@47327 -
This commit is contained in:
parent
9c037e8287
commit
0c1a2ec8fe
@ -212,6 +212,10 @@ type
|
||||
{ delphi 2009 }
|
||||
ttReference,
|
||||
|
||||
{ Additional Free Pascal directives }
|
||||
ttExperimental,
|
||||
ttUnimplemented,
|
||||
|
||||
{ built-in constants }
|
||||
ttNil,
|
||||
ttTrue,
|
||||
@ -335,13 +339,17 @@ const
|
||||
ttReadOnly, ttWriteOnly, ttDispId,
|
||||
// hints
|
||||
ttDeprecated, ttLibrary, ttPlatform,
|
||||
// free pascal hints
|
||||
ttExperimental, ttUnimplemented,
|
||||
|
||||
// Delphi.Net
|
||||
ttAdd, ttRemove
|
||||
];
|
||||
|
||||
ExportDirectives: TTokenTypeSet = [ttIndex, ttName];
|
||||
|
||||
VariableDirectives: TTokenTypeSet = [ttAbsolute, ttDeprecated, ttLibrary, ttPlatform];
|
||||
VariableDirectives: TTokenTypeSet = [ttAbsolute, ttDeprecated, ttLibrary, ttPlatform,
|
||||
ttExperimental, ttUnimplemented];
|
||||
|
||||
ClassVisibility: TTokenTypeSet =
|
||||
[ttPrivate, ttProtected, ttPublic, ttPublished, ttAutomated];
|
||||
@ -351,11 +359,13 @@ const
|
||||
ttVirtual, ttCdecl, ttMessage, ttName, ttRegister, ttDispId,
|
||||
ttNear, ttDynamic, ttExport, ttOverride, ttResident, ttLocal,
|
||||
ttOverload, ttReintroduce,
|
||||
ttDeprecated, ttLibrary, ttPlatform, ttStatic, ttFinal, ttVarArgs, ttUnsafe, ttEnumerator];
|
||||
ttDeprecated, ttLibrary, ttPlatform, ttExperimental, ttUnimplemented,
|
||||
ttStatic, ttFinal, ttVarArgs, ttUnsafe, ttEnumerator];
|
||||
|
||||
ClassDirectives: TTokenTypeSet =
|
||||
[ttPrivate, ttProtected, ttPublic, ttPublished, ttAutomated, ttStrict];
|
||||
HintDirectives: TTokenTypeSet = [ttDeprecated, ttLibrary, ttPlatform];
|
||||
HintDirectives: TTokenTypeSet = [ttDeprecated, ttLibrary, ttPlatform,
|
||||
ttExperimental, ttUnimplemented];
|
||||
|
||||
AllDirectives: TTokenTypeSet =
|
||||
[ttAbsolute, ttExternal, ttPascal, ttSafecall,
|
||||
@ -695,6 +705,9 @@ begin
|
||||
{ delphi 2009 }
|
||||
AddKeyword('reference', wtReservedWordDirective, ttReference);
|
||||
|
||||
{ Additional Free Pascal directives }
|
||||
AddKeyword('experimental', wtReservedWordDirective, ttExperimental);
|
||||
AddKeyword('unimplemented', wtReservedWordDirective, ttUnimplemented);
|
||||
|
||||
{ operators that are words not symbols }
|
||||
AddKeyword('and', wtOperator, ttAnd);
|
||||
|
Loading…
Reference in New Issue
Block a user