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

Action isn't optional with a eventex that has a where clause #62

Open
windley opened this issue Feb 13, 2014 · 1 comment
Open

Action isn't optional with a eventex that has a where clause #62

windley opened this issue Feb 13, 2014 · 1 comment

Comments

@windley
Copy link
Member

windley commented Feb 13, 2014

This parses:

rule clearVisits is active {
  select when pageview where url.match(re#/.*clear.*/#)
  noop();
  fired {
      clear ent:foo
  }
}

so does this:

rule clearVisits is active {
  select when pageview url re#/.*clear.*/#
  fired {
      clear ent:foo
  }
}

This doesn't:

rule clearVisits is active {
  select when pageview where url.match(re#/.*clear.*/#)
  fired {
    clear ent:visits;
  }
}
@windley
Copy link
Member Author

windley commented May 9, 2015

@alexkolson created a pull request on this that didn't solve the problem. I've got tests that show this error now.

For some reason, the parser can't recognize the end of the expression after the where clause without the action.

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

No branches or pull requests

1 participant