display regex as railroad diagram, if cursor moves to it