Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect highlighting #2

Open
apuchitnis opened this issue Sep 21, 2016 · 0 comments
Open

Incorrect highlighting #2

apuchitnis opened this issue Sep 21, 2016 · 0 comments

Comments

@apuchitnis
Copy link

For the file:

package improbable;

// The enumeration
type ActivityData {
  enum Activity {
    SITTING = 0;
    STANDING = 1;
    WALKING = 2;
    RUNNING = 3;
  }
}

type ActivityChangedEvent {
  ActivityData.Activity new_activity = 1;
}

// Parameters for transitioning between activites
component ActivityState {
  option queryable = false;

  id = 1007;
  // these should not be updated directly. Use the changeActivity event!
  ActivityData.Activity current = 1;
  ActivityData.Activity previous = 2;
  // The main event to change state via
  event ActivityChangedEvent change_activity;
}

The plugin incorrectly reports "Expected ";" or "=" after event ActivityChangedEvent" and highlights "change_activity" with a red underline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant