mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-13 17:49:34 +01:00
codetools: fixed parsing variable hint modifiers not behind semicolon
git-svn-id: trunk@50721 -
This commit is contained in:
parent
f9b481b253
commit
01acb9a1bc
@ -3358,6 +3358,7 @@ begin
|
||||
end;
|
||||
|
||||
// optional: hint modifier
|
||||
if CurPos.Flag<>cafSemicolon then
|
||||
ReadHintModifiers([cafSemicolon,cafEqual]);
|
||||
|
||||
if (ParentNode.Desc=ctnVarSection) then begin
|
||||
@ -3762,6 +3763,7 @@ begin
|
||||
SaveRaiseStringExpectedButAtomFound(ctsStringConstant);
|
||||
ReadConstant(true,false,[]);
|
||||
// read hint modifier
|
||||
if CurPos.Flag<>cafSemicolon then
|
||||
ReadHintModifiers;
|
||||
// read ;
|
||||
if CurPos.Flag<>cafSemicolon then
|
||||
@ -3903,6 +3905,7 @@ begin
|
||||
end;
|
||||
ReadConstExpr;
|
||||
// optional: hint modifier
|
||||
if CurPos.Flag<>cafSemicolon then
|
||||
ReadHintModifiers;
|
||||
if CurPos.Flag=cafSemicolon then begin
|
||||
if (CurNode.Parent.Desc=ctnConstSection)
|
||||
@ -3993,6 +3996,7 @@ begin
|
||||
ReadNextAtom;
|
||||
ParseType(CurPos.StartPos);
|
||||
// read hint modifier
|
||||
if CurPos.Flag<>cafSemicolon then
|
||||
ReadHintModifiers;
|
||||
// read ;
|
||||
if CurPos.Flag<>cafSemicolon then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user