mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
Spelling of canonical
This commit is contained in:
@@ -86,7 +86,7 @@ class GetMember : private GetDefaultMember {
|
||||
/// Handle an object: we are done if the name matches
|
||||
template <typename T>
|
||||
void handle(const Char* name, const T& object) {
|
||||
if (!gdm.result() && cannocial_name_compare(target_name, name)) {
|
||||
if (!gdm.result() && canonical_name_compare(target_name, name)) {
|
||||
gdm.handle(object);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ bool Reader::enterAnyBlock() {
|
||||
bool Reader::enterBlock(const Char* name) {
|
||||
if (state == ENTERED) moveNext(); // on the key of the parent block, first move inside it
|
||||
if (indent != expected_indent) return false; // not enough indentation
|
||||
if (cannocial_name_compare(key, name)) {
|
||||
if (canonical_name_compare(key, name)) {
|
||||
state = ENTERED;
|
||||
expected_indent += 1; // the indent inside the block must be at least this much
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user