Repository navigation
Commit 64e3db3
Register the UnicodeString keyword handler
TmwBasePasLex.Func158 lexes UnicodeString as ptString with ExID
ptUnicodeString, the way Func-handlers already treat AnsiString and
WideString, but InitIdent never put it in FIdentFuncTable. 'UnicodeString'
hashes to 158, which had no entry, so the handler was unreachable (Delphi:
H2219 Private symbol 'Func158' declared but never used) and the word lexed
as a plain identifier.
Declarations parse the same either way. The difference is a typecast:
UnicodeString(p^) built a CALL whose callee was an IDENTIFIER, which
cannot be told apart from a call to a routine of that name, while
AnsiString(p^) and WideString(p^) build a TYPE callee. Now all three do.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 4b67cb1 commit 64e3db3
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
| 577 | + | |
577 | 578 | | |
578 | 579 | | |
579 | 580 | | |
| |||
0 commit comments