Thanks for this, I'm using rhai as my Advent og Code challenge when I noticed this issue.
I think it is because of the closure handling. Maybe the order is wrong?
To reproduce just add code with a logical or anywhere and the code until the next logical or is not highlighted.