fix(fuzzer): only use rule strings for fuzz dictionary

The `find_literals` function can also pick up tokens in `precedences`
This commit is contained in:
Andrew Helwer 2023-07-10 19:12:24 -04:00 committed by GitHub
parent 9d669abac4
commit 89edb2ddca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: