On 16.11.2017 14:12, Sven Barth wrote: > Am 16.11.2017 14:01 schrieb "Mattias Gaertner" > <nc-gaert...@netcologne.de <mailto:nc-gaert...@netcologne.de>>: > > On Thu, 16 Nov 2017 11:49:59 +0100 > Maciej Izak <hnb.c...@gmail.com <mailto:hnb.c...@gmail.com>> wrote: > > > 2017-11-16 11:39 GMT+01:00 Mattias Gaertner > <nc-gaert...@netcologne.de <mailto:nc-gaert...@netcologne.de>>: > > > > > What $modes support this? > > > The reason I ask is I'm trying to distinguish them from Delphi > > > Attributes in pparser. > > > > > > > for Delphi like attributes FPC will have new modeswitch > "prefixedattributes" . > > The implicit usage for $prefixedattributes in > DELPHI/DELPHIUNICODE mode is > > not decided yet (but IMO this is probable scenario). > > Good to know. Thanks. > > So, how will FPC distinguish the two []? > > > The only idea I have is to check whether the first identifier is a > attribute and if not handle it as a modifier (or if a comma is following > the first identifier).
One other point to differentiate them: the modifier one always ends with a semicolon after the closing bracket, Delphi's attributes never do that. Regards, Sven _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal