Fix infinite loop in identifier parsing

Fixed a bug in the code scanner that caused an infinite loop when parsing identifiers ending with a hyphen (like in comments). The fix adds proper operator precedence with parentheses to ensure the loop condition evaluates correctly.