View Issue Details

IDProjectCategoryView StatusLast Update
0032336LazarusIDEpublic2017-09-03 12:20
ReporterSven Barth Assigned ToOndrej Pokorny  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformx86_64OSLinux 
Product Version1.8RC4 
Summary0032336: CodeTools complains about context specific keywords used as identifiers
DescriptionI 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 ReproduceIn the attached source file uncomment the "t := TKeyW" line and try to complete the TKeyW|.
Additional InformationA 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).
TagsNo tags attached.
Fixed in Revision55779
LazTarget-
Widgetset
Attached Files

Activities

Sven Barth

2017-08-26 13:23

manager  

tkeywords.pp (710 bytes)

Ondrej Pokorny

2017-09-03 12:20

developer   ~0102608

Feel free to reopen if you find more.

Issue History

Date Modified Username Field Change
2017-08-26 13:23 Sven Barth New Issue
2017-08-26 13:23 Sven Barth File Added: tkeywords.pp
2017-08-26 20:33 Ondrej Pokorny Assigned To => Ondrej Pokorny
2017-08-26 20:33 Ondrej Pokorny Status new => assigned
2017-09-03 12:20 Ondrej Pokorny Fixed in Revision => 55997
2017-09-03 12:20 Ondrej Pokorny Note Added: 0102608
2017-09-03 12:20 Ondrej Pokorny Status assigned => resolved
2017-09-03 12:20 Ondrej Pokorny Resolution open => fixed
2017-09-03 12:20 Ondrej Pokorny Fixed in Revision 55997 => 55779