mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-28 03:43:10 -07:00
[Game] Allow uppercase X in expressions (#6767)
This commit is contained in:
@@ -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]*
|
||||
|
||||
Reference in New Issue
Block a user