codetools: parse resourcestring starting with an identifier, bug #8485

git-svn-id: trunk@34771 -
This commit is contained in:
mattias 2012-01-18 11:10:23 +00:00
parent f5c59f0258
commit d5188c4108

View File

@ -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