While doing a lot of commenting, I’ve noticed an error with how the formula marks comments. Error summary: The formula is marking code as comments that shouldn’t be comments.
QUICK RUNDOWN of how LONG comment marking should work:
“–[===[” marks comments until “]===]” is shown
“–[==[” marks comments until “]==]” is shown
“–[=[” marks comments until “]=]” is shown
Number of equal signs = what ‘class’ that long comment is in, good way of organizing that system, btw.
REPRODUCING the error I’ve found:
- Open ROBLOX Studio and make a new script
- In the new script, paste the code (located below)
- Make the “2 equals sign” long comment (lines 1-3) into a “1 equals sign” comment (take away 1 equals sign from each bracket)
- Everything turns into a comment, that shouldn’t happen. If you run the code, you see that comments are executing, comments shouldn’t execute. Seems like a problem with studio’s Comment-Marking formula.
--[==[ comment 1 ]==] --hello here is code for i = 1, 2 do print("The editor says I'm a comment, yet I execute... Run: ", i) end --[=[ comment 2 ]=]
I’m commenting in large quantities, many times to archive my code. Pls fix! Or is it not an error?