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]
|
||||
name = "rhai"
|
||||
version = "0.6.0"
|
||||
version = "0.6.1"
|
||||
authors = ["Jonathan Turner", "Lukáš Hozda"]
|
||||
description = "Embedded scripting for Rust"
|
||||
homepage = "https://github.com/jonathandturner/rhai"
|
||||
|
@ -191,6 +191,8 @@ impl Token {
|
||||
Or |
|
||||
Ampersand |
|
||||
And |
|
||||
If |
|
||||
While |
|
||||
Return => true,
|
||||
_ => false,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user