code: function (startToken, endToken, types) {
              var is = true;
              var token = startToken;
              while (token.next && token.next !== endToken) {
                  token = token.next;
                  if (types.indexOf(token.type) === -1) {
                      is = false;
                      break;
                  }
              }
              return is;
          }
docs: check if only types between startToken and endToken
  
  @param {Object} startToken - the token to start check
  @param {Object} endToken - the token to end check
  @param {Array} types - allow types array
  @returns {boolean}