Syntax highlighter selecting the wrong table

See the attached image. Steps to reproduce were:

  1. Have table with formulas
  2. Create duplicate (not view) of said table with data.
  3. Edit formula in that table.