Skip to content

Incorrect highlighting #2

@apuchitnis

Description

@apuchitnis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions