Code editor always displayes the code within {$if CONST_NAME = NNN} ... {$endif} as inactive
Original Reporter info from Mantis: tsapi
-
Reporter name: Tsvetoslav
Original Reporter info from Mantis: tsapi
- Reporter name: Tsvetoslav
Description:
It seems that the code editor/code tools do not handle properly the
{$if CONST_NAME = NNN}
...
{$endif}
conditional lines and the source code between $if and $endif is always displayed as inactive.
Steps to reproduce:
Look at the attached screenshot. The constant MY_CONST is defined and its value is 1, but the procedure Test1 is displayed as inactive. Compiling the project tries to compile the procedure Test1 and it fails with the expected message 'unit1.pas(33,3) Error: Identifier not found "ErrorLineHere"'.
Mantis conversion info:
- Mantis ID: 32950
- OS: Windows
- OS Build: 7
- Build: 56963
- Platform: x86_64
- Version: 1.9 (SVN)