code: function checkBlock(i) {
    return i < tokensLength && tokens[i].block_end ?
        tokens[i].block_end - i + 1 : 0;
  }
docs: Checks if token is part of a block (e.g. `{...}`).
  
  @param {number} i Token's index number
  @return {number} Length of the block