RomanYankovsky / DelphiAST

Abstract syntax tree builder for Delphi
Mozilla Public License 2.0
271 stars 116 forks source link

TmwSimplePasPar.AttributeName missing ptStrConst #273

Open ProHolz opened 5 years ago

ProHolz commented 5 years ago

small issue in TmwSimplePasPar.AttributeName; this will not be parsed correct:

 [test, 'GeoTest2']
  procedure GeoTest2;

Solution add : case TokenID of ptIn, ptOut, ptConst, ptVar, ptUnsafe , ptStringConst: NextToken; else

bogdanpolak commented 2 years ago

@ProHolz is it really correct Delphi syntax for Custom Attribute? I would expect something like that

[Test('GeoTest2')]
ProHolz commented 2 years ago

Wow, after 3 Years ;-) I think you are correct