allow unary operators as the first token after if or while
This commit is contained in:
parent
ebbab0d259
commit
32c252d4d2
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rhai"
|
name = "rhai"
|
||||||
version = "0.6.0"
|
version = "0.6.1"
|
||||||
authors = ["Jonathan Turner", "Lukáš Hozda"]
|
authors = ["Jonathan Turner", "Lukáš Hozda"]
|
||||||
description = "Embedded scripting for Rust"
|
description = "Embedded scripting for Rust"
|
||||||
homepage = "https://github.com/jonathandturner/rhai"
|
homepage = "https://github.com/jonathandturner/rhai"
|
||||||
|
@ -191,6 +191,8 @@ impl Token {
|
|||||||
Or |
|
Or |
|
||||||
Ampersand |
|
Ampersand |
|
||||||
And |
|
And |
|
||||||
|
If |
|
||||||
|
While |
|
||||||
Return => true,
|
Return => true,
|
||||||
_ => false,
|
_ => false,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user