Allow most common word separators for variables

- Also includes '?' suffix for bools
This commit is contained in:
2021-12-31 09:24:14 +01:00
committed by Raymon Zutekouw
parent a705d3a8df
commit 1affaee503
+3 -1
View File
@@ -1,8 +1,10 @@
operator = @{ "operator" } // TODO operator = @{ "operator" } // TODO
operand = @{ "operand" } // TODO operand = @{ "operand" } // TODO
wordSeperator =_{ " " | "-" | "_" }
variable =@{ ASCII_ALPHA variable =@{ ASCII_ALPHA
~ (ASCII_ALPHANUMERIC | " ")* ~ (ASCII_ALPHANUMERIC | wordSeperator)*
~ "?"?
} }
char =_{ "\"" ~ ANY ~ "\"" } char =_{ "\"" ~ ANY ~ "\"" }