allow unary operators as the first token after if or while

This commit is contained in:
Lukáš Hozda 2017-10-28 20:56:34 +02:00
parent ebbab0d259
commit 32c252d4d2
2 changed files with 3 additions and 1 deletions

View File

@ -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"

View File

@ -191,6 +191,8 @@ impl Token {
Or |
Ampersand |
And |
If |
While |
Return => true,
_ => false,
}