winmerge icon indicating copy to clipboard operation
winmerge copied to clipboard

Syntax parser for Pascal should be extended to support compiler directives

Open JedrzejczykRobert opened this issue 6 months ago • 0 comments

This would be very helpful when comparing files without comments.

Now char { is interpreted as the start of a comment. But that's not always OK, chars {$ is begin of compiler directive.

For example:

Image

should be interpreted as compiler directives not as comments, but text "// Delphi 7+" should be interpreted as comment.

Reference links: https://docwiki.embarcadero.com/RADStudio/Athens/en/Delphi_compiler_directives https://www.freepascal.org/docs-html/prog/progch1.html

JedrzejczykRobert avatar Jun 14 '25 06:06 JedrzejczykRobert