CodeTools: case ofall helper does not handle enum values that need escaping with '&'
Original Reporter info from Mantis: PascalDragon @PascalDragon
-
Reporter name: Sven Barth
Original Reporter info from Mantis: PascalDragon @PascalDragon
- Reporter name: Sven Barth
Description:
When auto generating a case statement for an enum that has identifiers that need escaping with '&' the identifiers are not escaped. Other code tools handle this correctly (e.g. auto completion using Ctrl+Space).
Steps to reproduce:
Take the following code ('|' denotes the cursor position):
=== code begin ===
type
TEnum = (
start,
&end
);
var
e: TEnum;
begin
case e ofall|
end.
=== code end ===
Press Ctrl+J (or whatever combination to trigger the auto completion of the case statement).
Expected result:
=== code begin ===
case e of
start: ;
&end: ;
end;
=== code end ===
Actual result:
=== code begin ===
case e of
start: ;
end: ;
end;
=== code end ===
Mantis conversion info:
- Mantis ID: 35801
- OS: Windows NT
- OS Build: 10
- Build: 61508
- Platform: X86_64
- Version: 2.1 (SVN)
- Fixed in revision: 62244 (#b21a3831)