Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Source/SimpleParser/SimpleParser.pas
Original file line number Diff line number Diff line change
Expand Up @@ -4387,7 +4387,17 @@ procedure TmwSimplePasPar.RecordAlign;

procedure TmwSimplePasPar.RecordAlignValue;
begin
Expected(ptIntegerConst);
if TokenID = ptRoundOpen then
begin
NextToken;
if TokenID = ptIdentifier then
NextToken
else
Expected(ptIntegerConst);
Expected(ptRoundClose);
end
else
Expected(ptIntegerConst);
end;

procedure TmwSimplePasPar.RecordFieldConstant;
Expand Down
19 changes: 19 additions & 0 deletions Test/Snippets/recordalignparens.pas
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
unit recordalignparens;

interface

const
REC_ALIGN = 16;

type
TParenAligned = record
Value: Integer;
end align(16);

TIdentAligned = record
Value: Integer;
end align(REC_ALIGN);

implementation

end.