Allow most common word separators for variables
- Also includes '?' suffix for bools
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
operator = @{ "operator" } // TODO
|
||||
operand = @{ "operand" } // TODO
|
||||
|
||||
wordSeperator =_{ " " | "-" | "_" }
|
||||
variable =@{ ASCII_ALPHA
|
||||
~ (ASCII_ALPHANUMERIC | " ")*
|
||||
~ (ASCII_ALPHANUMERIC | wordSeperator)*
|
||||
~ "?"?
|
||||
}
|
||||
|
||||
char =_{ "\"" ~ ANY ~ "\"" }
|
||||
|
||||
Reference in New Issue
Block a user