mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 09:03:57 -07:00
[Game] Allow uppercase X in expressions
This commit is contained in:
parent
690a00aa6c
commit
6eb7c88a85
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ peg::parser math(R"(
|
|||
|
||||
NUMBER <- < '-'? [0-9]+ >
|
||||
NAME <- < [a-z][a-z0-9]* >
|
||||
VARIABLE <- < [x] >
|
||||
VARIABLE <- < [xX] >
|
||||
FUNCTION <- NAME '(' EXPRESSION ( [,\n] EXPRESSION )* ')'
|
||||
|
||||
%whitespace <- [ \t\r]*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue