Allow most common word separators for variables

- Also includes '?' suffix for bools
Raymon Zutekouw 4 years ago committed by Raymon Zutekouw
parent a705d3a8df
commit 1affaee503
No known key found for this signature in database
GPG Key ID: E62222846283925
  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