Fixed bug with inline comments for variables not parsing correctly.

This commit is contained in:
2023-10-25 23:44:25 -04:00
parent c1ab233686
commit 212d907d73
7 changed files with 253 additions and 252 deletions

View File

@ -3655,7 +3655,6 @@ CodeVar parse_variable_after_name(
eat( TokType::Statement_End );
// Check for inline comment : <type> <identifier> = <expression>; // <inline comment>
CodeComment inline_cmt = NoCode;
if ( left && ( currtok_noskip.Type == TokType::Comment ) && currtok_noskip.Line == stmt_end.Line )
{
inline_cmt = parse_comment();