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] [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"

View File

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