On Mon, Dec 28, 2015 at 3:45 PM Christoph Reller <christoph.reller@gmail.com>   wrote:
There seems to be a problem with the structure information added when using
\startmatrix:

\setuptagging[state=start]
\starttext
\math{
  \startmatrix
    \NC A \NR
    \NC B \NR
  \stopmatrix}
\stoptext

The log reports an open chain: document>1 => mtr>1 => mtd>1 => mtr>2 =>
mtd>2 => mtr>3
This may be a bug.

This is clearly a bug. The resulting structure tree of the above MWE is as follows (sorry for the ASCII art):

<document>
'-<mtr>
  '-<mtd>
    |-<mtr>
    | '-<mtd>
    |   |-<mtr>
    |   | '-<mtd>
    |   |   |-<math>
    |   |   | '-<mrow>
    |   |   |   '-<mtext>
    |   |   |     '-<mrow>
    |   |   |       |-<mrow>
    |   |   |       '-<mrow>
    |   |   '-<math>
    |   |     '-<mrow>
    |   |       '-<mtext>
    |   |         |-<mrow>
    |   |         '-<mrow>
    |   '-<math>
    |     '-<mrow>
    |       '-<mi>
    |         '-"B"
    '-<math>
      '-<mrow>
        '-<mi>
          '-"A"

A fix would be very much appreciated.
Thanks in advance,
Christoph