View Issue Details

IDProjectCategoryView StatusLast Update
00312352.x IDE BugsCode EditorPublic2019-10-04 16:31
ReporterKevin BrownAssigned ToRussell Kay 
PriorityLowSeverityC - GeneralReproducibility100%
Status AssignedResolutionOpen 
Product Version 
Target VersionFixed in Version 
Summary0031235: Code Editor: 'Unexpected syntax error' message can be shown for macro'd values
DescriptionIf a user sets a #macro value for, for example < then they will be shown an error message within the code window.

This code:
#macro lessthan <

for (var i = 0; i lessthan 5; ++i;)
{
    show_message("Hello2 " + string(i));
}

Will give an "Unexpected syntax error" within the code editor on the line "for (var i = 0; i lessthan 5; ++i;)"
Steps To ReproduceOpen the sample project
Open the Create event of the object
Notice that line 9 has a "Unexpected syntax error"
Run the project
Notice that the code runs correctly and does not encounter any error
TagsIDE
2.x IDE Found In
2.x Runtime Found In
2.x IDE Verified In
2.x Runtime Verified In

Activities

Kevin Brown

2019-07-31 15:59

Manager  

MacroUsage.yyz (20,010 bytes)