Build terminals in editor from contiguous tokens.