Find the last open block marker

  Couldn't write a regex to find the last open block marker in a line, so I just
wrote a function instead.