Skip to content

Highlight arguments  #50

Open
Open
@mcoetzee

Description

@mcoetzee

Hi there,

Thanks for your work.
Would it be possible with Vim's syntax matching to highlight usages of a function's arguments? For example, to highlight usages (of accommodationId, startDate, endDate and userId) in a function like below:

  ...
  requestAvailability: function(accommodationId, startDate, endDate, userId) {
    var deferred = Q.defer();
    var request = {
      deferred: deferred,
      userId: userId,
      accommodationId: accommodationId,
      startDate: startDate,
      endDate: endDate
    };
    if (!userId) {
      UserService.getLoggedInUser().then(function(data) {
        request.userId = data.user.id;
        _makeOrDelayAvailabilityRequest(request);
      });
      return deferred.promise;
    }
    _makeOrDelayAvailabilityRequest(request);
    return deferred.promise;
  }
  ...

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions