Generalised code that detects whether a directive is reserved or not depending on context.
Authored by: delphidabbler 2011-07-29
Parent: [r1539]
Child: [r1541]