This commit is contained in:
yhirose 2021-02-21 15:12:59 -05:00
parent 73a058d4d9
commit 9b395f2c7f

View File

@ -459,7 +459,7 @@ vector<string> tags;
Definition ROOT, TAG_NAME, _; Definition ROOT, TAG_NAME, _;
ROOT <= seq(_, zom(seq(chr('['), TAG_NAME, chr(']'), _))); ROOT <= seq(_, zom(seq(chr('['), TAG_NAME, chr(']'), _)));
TAG_NAME <= oom(seq(npd(chr(']')), dot())), [&](const SemanticValues& vs) { TAG_NAME <= oom(seq(npd(chr(']')), dot())), [&](const SemanticValues& vs) {
tags.push_back(vs.str()); tags.push_back(vs.token_to_string());
}; };
_ <= zom(cls(" \t")); _ <= zom(cls(" \t"));