Doesn the grammar only detect Delphi keywords?
This is a common misconception. There are products that will do this and it is unfortunate that the perception is that they can do more. It is true that the Cocolsoft Delphi Grammar can detect Delphi keywords. However it does much more than that. The Cocolsoft Delphi Grammar understands the structure of Delphi code. As a simple illustration, if there is a keyword within a comment, then the “keyword” would be seen as part of a comment and not as a “keyword”!