Skip to content

Introduce inline comments to GDScript

Rafał Mikrut requested to merge github/fork/ShyRed/midcomment into master

Created by: ShyRed

Introduces C-Style /* */ comments to GDScript like proposed in #18228 (closed).

To the tokenizer the comments and its contents are invisible so for example they can be placed inside of function calls.

This pull request has been created to serve as a playground to get a feeling on how C-Style comments would look and work in GDScript. Feel free to reject and close the pull request, if the decision is made against C-Style comments or a different / better implementation is desired. 😅

Closes #18228 (closed)

Example project: MidComment.zip

Screenshot: inline_comment

Merge request reports