If you are using Lazarus you can set it in your Compiler options by going (in your menu) to Project -> Compiler Options... then go into your 'Parsing' tab and under Syntax Mode (-M) choose Delphi.

I do this in each of my own projects and it works quite well when using Delphi-style syntax.