CodeTools complains about context specific keywords used as identifiers
Original Reporter info from Mantis: PascalDragon @PascalDragon
-
Reporter name: Sven Barth
Original Reporter info from Mantis: PascalDragon @PascalDragon
- Reporter name: Sven Barth
Description:
I recently found myself in the need to use some context specific keywords (e.g. inline, public, etc.) as identifiers for enum values. However while the compiler did not complain about them the IDE's codetools did barf on them and I needed to use "&" to escape them.
Steps to reproduce:
In the attached source file uncomment the "t := TKeyW" line and try to complete the TKeyW|.
Additional information:
A good reference for this is the compiler's token.pas file. There the constant arraytokeninfo array defines which keywords are considered as keywords in various modes (the keyword field).
Mantis conversion info:
- Mantis ID: 32336
- OS: Linux
- OS Build: 4.11
- Platform: x86_64
- Version: 1.8RC4
- Fixed in revision: 55779 (#b1ddbb8f)