ID:2552825
 
BYOND Version:512.1488, 513.1514
Operating System:Linux
Web Browser:Firefox 73.0
Applies to:Dream Maker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary: Putting a closing square bracket in a string used as (part of) an embedded expression causes a strange compile error.

Numbered Steps to Reproduce Problem: Compile code below

Code Snippet (if applicable) to Reproduce Problem:
// all three compile OK and output ']'
world.log << "\]"
world.log << "]"
world.log << "["\]"]"

// error: unterminated text (expecting ")
// error: ]: expected }
// error: location of top-most unmatched {
world.log << "["]"]"


Expected Results: Compile success; alternatively, for "]" to be consistently invalid in all contexts.

Actual Results: Compile failure with odd error.

Does the problem occur:
Every time? Or how often? Every time
In other games? Yes
In other user accounts? Yes
On other computers? Yes

When does the problem NOT occur? N/A

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? Unsure

Workarounds: Don't do this?
world << "Example  1 \[]"
world << {"Example 2 \[]"}
world << @"Example 3 []"