Ctrl/Cmd + arrow key jumping in code treats underscore as a separator

I just tried this on OSX.
It treats underscore properly, but now it doesn’t treat period as a separator, so it jumps too far instead!