From 89edb2ddcaf2928e3197ad6095e1eb1d59bfcc40 Mon Sep 17 00:00:00 2001 From: Andrew Helwer Date: Mon, 10 Jul 2023 19:12:24 -0400 Subject: [PATCH] fix(fuzzer): only use rule strings for fuzz dictionary The `find_literals` function can also pick up tokens in `precedences` --- test/fuzz/gen-dict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fuzz/gen-dict.py b/test/fuzz/gen-dict.py index f8cf834e..c9845671 100644 --- a/test/fuzz/gen-dict.py +++ b/test/fuzz/gen-dict.py @@ -21,7 +21,7 @@ def main(): grammar = json.load(f) literals = set() - find_literals(literals, grammar) + find_literals(literals, grammar['rules']) for lit in sorted(literals): if lit: