syntax-gen: Test the category properly.
authorBen Pfaff <blp@cs.stanford.edu>
Thu, 21 Jul 2022 01:15:34 +0000 (18:15 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 29 Jul 2022 21:05:45 +0000 (14:05 -0700)
commit540e5b39fe6617203c86f4b582f35537e0fe90ef
treeee1104b18d340944d9f20c19e82d904491b5dcac
parentafefc84585152d079b1e4cfad47b6c74c11a0829
syntax-gen: Test the category properly.

This code was testing the format type against a collection of format type
categories, which doesn't make any sense.  This commit fixes the problem.

Found by inspection.
src/ui/syntax-gen.c