Allow most common word separators for variables

- Also includes '?' suffix for bools
rewrite/grammar-implicit-whitespace
Raymon Zutekouw 2 years ago
parent 6d571b83f3
commit 7e2bfe27e5
No known key found for this signature in database
GPG Key ID: 1E9BCC39EDD1DD53
  1. 4
      src/grammars/mblf.pest

@ -1,8 +1,10 @@
operator = @{ "operator" } // TODO
operand = @{ "operand" } // TODO
wordSeperator =_{ " " | "-" | "_" }
variable =@{ ASCII_ALPHA
~ (ASCII_ALPHANUMERIC | " ")*
~ (ASCII_ALPHANUMERIC | wordSeperator)*
~ "?"?
}
char =_{ "\"" ~ ANY ~ "\"" }

Loading…
Cancel
Save