-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Bug with template string code formatting #773
Copy link
Copy link
Closed
Labels
Good First IssueA beginner-friendly issue, great for first-time contributorsA beginner-friendly issue, great for first-time contributorsHelp WantedWould love additional input or contributions!Would love additional input or contributions!Priority:MediumModerately important, should be completed in a fair timeframeModerately important, should be completed in a fair timeframe
Metadata
Metadata
Assignees
Labels
Good First IssueA beginner-friendly issue, great for first-time contributorsA beginner-friendly issue, great for first-time contributorsHelp WantedWould love additional input or contributions!Would love additional input or contributions!Priority:MediumModerately important, should be completed in a fair timeframeModerately important, should be completed in a fair timeframe
Type
Fields
Give feedbackNo fields configured for issues without a type.
Nature of issue?
Details about the bug:
After trying the text editor with a larger project I have written, I discovered the following: when using a template string of the form
text(`Lives ${playerLives}\nStreak ${round(streak*10)/10}`, 0, 0);(used to display game information in
draw()) the code after it is regarded as part of the template string, or in other terms:Everything after this line turns turqoise.
Now, to be clear, this is fully functional code without any errors whatsoever, it is just a flaw in the editor's formatting system