mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 02:50:14 +02:00
JCF2: Support operators in records. Issue #32942, patch from delfion.
git-svn-id: trunk@56972 -
This commit is contained in:
parent
6acdb23a08
commit
b5ce4f63c4
@ -4908,6 +4908,12 @@ procedure TBuildParseTree.RecogniseMethodName(const pbClassNameCompulsory: boole
|
||||
var
|
||||
lbMore: boolean;
|
||||
begin
|
||||
if IsSymbolOperator(fcTokenList.FirstSolidToken) then begin
|
||||
PushNode(nIdentifier);
|
||||
Recognise(Operators);
|
||||
PopNode;
|
||||
exit;
|
||||
end;
|
||||
if not (IdentifierNext(idAllowDirectives)) then
|
||||
raise TEParseError.Create('Expected identifier', fcTokenList.FirstSolidToken);
|
||||
|
||||
@ -4929,7 +4935,7 @@ begin
|
||||
while lbMore do
|
||||
begin
|
||||
Recognise(ttDot);
|
||||
Recognise(IdentiferTokens);
|
||||
Recognise(IdentiferTokens + Operators);
|
||||
|
||||
if fcTokenList.FirstSolidTokenType = ttLessThan then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user