mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-14 19:52:42 +02:00
codetools: parse resourcestring starting with an identifier, bug #8485
git-svn-id: trunk@34771 -
This commit is contained in:
parent
f5c59f0258
commit
d5188c4108
@ -3476,7 +3476,7 @@ function TPascalParserTool.KeyWordFuncResourceString: boolean;
|
|||||||
implementation
|
implementation
|
||||||
|
|
||||||
procedure c;
|
procedure c;
|
||||||
ResourceString b='';
|
ResourceString b=''; c=d+'';
|
||||||
}
|
}
|
||||||
begin
|
begin
|
||||||
if not (CurSection in [ctnProgram,ctnLibrary,ctnInterface,ctnImplementation])
|
if not (CurSection in [ctnProgram,ctnLibrary,ctnInterface,ctnImplementation])
|
||||||
@ -3498,7 +3498,7 @@ begin
|
|||||||
RaiseCharExpectedButAtomFound('=');
|
RaiseCharExpectedButAtomFound('=');
|
||||||
// read string constant
|
// read string constant
|
||||||
ReadNextAtom;
|
ReadNextAtom;
|
||||||
if not AtomIsStringConstant then
|
if (not AtomIsStringConstant) and (not AtomIsIdentifier(false)) then
|
||||||
RaiseStringExpectedButAtomFound(ctsStringConstant);
|
RaiseStringExpectedButAtomFound(ctsStringConstant);
|
||||||
ReadConstant(true,false,[]);
|
ReadConstant(true,false,[]);
|
||||||
// read hint modifier
|
// read hint modifier
|
||||||
|
Loading…
Reference in New Issue
Block a user