Allow more variable prefixes
This commit is contained in:
parent
4e3e3689d0
commit
acb6c05eec
@ -174,7 +174,7 @@ fn variable_declaration(i: &str) -> IResult<&str, crate::VariableDeclaration>
|
||||
let domain = match name.chars().next()
|
||||
{
|
||||
Some('X') | Some('Y') | Some('Z') => crate::Domain::Program,
|
||||
Some('I') | Some('N') | Some('M') => crate::Domain::Integer,
|
||||
Some('I') | Some('J') | Some('K') | Some('L') | Some('M') | Some('N') => crate::Domain::Integer,
|
||||
Some(other) => panic!("variable “{}” starts with character “{}”, which is not allowed", name, other),
|
||||
None => panic!("unexpected variable name, please report to bug tracker"),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user