-
-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ###
multi-line comment support.
#6558
Add ###
multi-line comment support.
#6558
Conversation
but what if some minehut users put like this ###
###
this is string Will |
Code. You started a block and ended a block, so now you're back to code space. |
Co-authored-by: Patrick Miller <apickledwalrus@gmail.com>
Co-authored-by: Patrick Miller <apickledwalrus@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work Kenzie ⚡
Will this affect if it's being used in actual code? |
Please see the PR description:
|
Oh I didn't see that sorry |
Description
This adds support for multi-line comments, originally requested here.
We agreed on very strict specifications: Multi-line comments can't start or end part-way through a line (for clarity).
(So you can't do
on script ### comment ### load:
!)A block comment is opened and closed with three hashtag characters
###
.This (
###
) must be the only thing on the line. This was to try and avoid breaking any existing weird comment set-ups in scripts (although multi-hashtag ### comments have only been permitted since December 2023 anyway!)This means that three hashtags followed by some text won't start (or end) a multi-line comment.
An error is thrown if a script opens a multi-line comment and never closes it.
Target Minecraft Versions: any
Requirements: none
Related Issues: closes 2180