View Issue Details

IDProjectCategoryView StatusLast Update
00312352.x IDE BugsCode EditorPublic2020-03-09 15:33
ReporterKevin BrownAssigned ToRussell Kay 
PriorityLowSeverityC - GeneralReproducibility100%
Status ResolvedResolutionReopened 
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)

Russell Kay

2020-03-05 17:12

Manager   ~0065441

Fixed in github

Alice

2020-03-09 15:02

Adminstrator   ~0065470

Issue still occurring on IDE v9.2.1.2152 Runtime v9.9.1.1717.

Reopening the bug. Thank you.

Russell Kay

2020-03-09 15:33

Manager   ~0065478

Fixed again in gitlab - an optimisation had been added which was only correct in some situations.