Skip to content

Commit

Permalink
More input callbacks.
Browse files Browse the repository at this point in the history
Rename `MouseButton` > `EMouseButton` and `KeyCode` > `EKeyCode` since LCL imports are prefixed with `Laz` now.
  • Loading branch information
ollydev committed Aug 20, 2023
1 parent 00d22a7 commit f170da1
Show file tree
Hide file tree
Showing 13 changed files with 904 additions and 704 deletions.
18 changes: 17 additions & 1 deletion Source/codetools/msimplepaspar.pas
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ TmwSimplePasPar = class(TObject)
procedure RealType; virtual;
procedure RecordConstant; virtual;
procedure RecordFieldConstant; virtual;
procedure RecordFields; virtual;
procedure RecordType; virtual;
procedure UnionType; virtual;
procedure RecordVariant; virtual;
Expand Down Expand Up @@ -2546,7 +2547,7 @@ procedure TmwSimplePasPar.RecordType;
if Lexer.TokenID = tokSemicolon then
Exit;
end;
ClassMemberList;
RecordFields;

Expected(tokEnd);
end;
Expand Down Expand Up @@ -3408,6 +3409,21 @@ procedure TmwSimplePasPar.RecordFieldConstant;
TypedConstant;
end;

procedure TmwSimplePasPar.RecordFields;
begin
while (Lexer.TokenID in [tokIdentifier, tokConst]) do
begin
if (Lexer.TokenID = tokConst) then
begin
NextToken;
ConstantDeclaration;
end else
ClassField;

Expected(tokSemiColon);
end;
end;

procedure TmwSimplePasPar.RecordConstant;
begin
Expected(tokRoundOpen);
Expand Down
Loading

0 comments on commit f170da1

Please sign in to comment.