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>
Thu, 21 Jul 2022 01:15:42 +0000 (18:15 -0700)
commit708f2f1b12056e77b03749aa7b5931dc07819356
tree29c2dab34e8c5fe2cdc87e185ad397abc19116ff
parent9acce16d7852918952aff5b420ba0057019d68c2
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