mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-14 20:12:50 +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
|
||||
|
||||
procedure c;
|
||||
ResourceString b='';
|
||||
ResourceString b=''; c=d+'';
|
||||
}
|
||||
begin
|
||||
if not (CurSection in [ctnProgram,ctnLibrary,ctnInterface,ctnImplementation])
|
||||
@ -3498,7 +3498,7 @@ begin
|
||||
RaiseCharExpectedButAtomFound('=');
|
||||
// read string constant
|
||||
ReadNextAtom;
|
||||
if not AtomIsStringConstant then
|
||||
if (not AtomIsStringConstant) and (not AtomIsIdentifier(false)) then
|
||||
RaiseStringExpectedButAtomFound(ctsStringConstant);
|
||||
ReadConstant(true,false,[]);
|
||||
// read hint modifier
|
||||
|
Loading…
Reference in New Issue
Block a user