Inconsistent const syntax highlighting in an ojs code block

When I was reviewing some D3 examples, I found that the color of the first const keyword is different from that of the rest in an ojs block! https://observablehq.com/@d3/bar-chart/2

Yes, syntax highlighting for Observable JavaScript cells just uses the vanilla JavaScript lexer, so it’s not very accurate.

I see! I also noticed that in a regular tsx cell, i is blue in its declaration and dark in the loop condition and increment. Is that intentional?