Default to true
if a WHEN
clause is omitted on DEFINE EVENT
statements (#2502)
This commit is contained in:
parent
495f69d618
commit
16a4c2c40e
1 changed files with 1 additions and 0 deletions
|
@ -90,6 +90,7 @@ pub fn event(i: &str) -> IResult<&str, DefineEventStatement> {
|
||||||
let mut res = DefineEventStatement {
|
let mut res = DefineEventStatement {
|
||||||
name,
|
name,
|
||||||
what,
|
what,
|
||||||
|
when: Value::Bool(true),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
// Assign any defined options
|
// Assign any defined options
|
||||||
|
|
Loading…
Reference in a new issue