这是indexloc提供的服务,不要输入任何密码
Skip to content

Syntax parser for Pascal should be extended to support compiler directives #2814

@JedrzejczykRobert

Description

@JedrzejczykRobert

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions