Changed 'unreferenced rule' not to be reported as error, but warning

pull/157/head
yhirose 3 years ago
parent e26a9e88f5
commit 9660853a68
  1. 2
      docs/native.js
  2. BIN
      docs/native.wasm
  3. 1
      peglib.h
  4. 2
      test/test2.cc

File diff suppressed because one or more lines are too long

Binary file not shown.

@ -3677,7 +3677,6 @@ private:
auto msg = "'" + name + "' is not referenced."; auto msg = "'" + name + "' is not referenced.";
log(line.first, line.second, msg); log(line.first, line.second, msg);
} }
ret = false;
} }
} }

@ -1112,7 +1112,7 @@ TEST_CASE("Unreferenced rule", "[macro]") {
)"); )");
bool ret = parser; bool ret = parser;
REQUIRE(ret == false); REQUIRE(ret == true); // This is OK, because it's a warning, not an erro...
} }
TEST_CASE("Nested macro call", "[macro]") { TEST_CASE("Nested macro call", "[macro]") {

Loading…
Cancel
Save