From c72f96e3262c1e263c95fccdf87c0494e4996520 Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" <pesco@khjk.org> Date: Thu, 20 Feb 2020 16:15:19 +0100 Subject: [PATCH] filter section comments --- pdf.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pdf.c b/pdf.c index 7b92779..8bddb57 100644 --- a/pdf.c +++ b/pdf.c @@ -893,7 +893,11 @@ init_parser(struct Env *aux) /* debug parser to consume as much as possible */ H_RULE(pdfdbg, SEQ(header, h_many(tail), body, OPT(xr_td), OPT(startxr))); - /* Parser for Ascii85Decode */ + /* + * filters + */ + + /* Ascii85Decode */ H_RULE(a85eod, SEQ(h_ch('~'), OPT(h_many(lwchar)), h_ch('>'))); H_ARULE(a85zero, h_ch('z')); H_ARULE(a85digit, h_ch_range('!', 'u')); @@ -915,7 +919,7 @@ init_parser(struct Env *aux) H_RULE(a85string, SEQ(h_many(a85group), OPT(a85partialgroup), IGN(a85eod))); - /* AsciiHexDecode parser */ + /* AsciiHexDecode */ H_RULE(ahexeod, h_ch('>')); H_RULE(hdigitpair, SEQ(IGN(OPT(h_many(lwchar))), hdigit, IGN(OPT(h_many(lwchar))), hdigit)); H_ARULE(ahextruncated, SEQ(IGN(OPT(h_many(lwchar))), hdigit, IGN(OPT(h_many(lwchar))), ahexeod)); -- GitLab