@@ -83,6 +83,7 @@ const comma = punctuation
83
83
const optionalComma = optional ( comma ) ;
84
84
const word = specificToken ( "word" ) . map ( ( { word } ) => word ) ;
85
85
const properWords = specificToken ( "proper word" ) . map ( ( { words } ) => words ) ;
86
+
86
87
function wordFrom ( set : Set < string > , description : string ) : Parser < string > {
87
88
return word . filter ( ( word ) =>
88
89
set . has ( word ) ||
@@ -128,6 +129,7 @@ const emphasis = choice<Emphasis>(
128
129
specificWord ( "a" ) . map ( ( word ) => ( { type : "word" , word } ) ) ,
129
130
) ;
130
131
const optionalEmphasis = optional ( emphasis ) ;
132
+
131
133
const alaXLongGlyph = memoize ( ( word : string ) =>
132
134
specificWord ( word )
133
135
. skip ( specificToken ( "headless long glyph end" ) )
@@ -335,6 +337,7 @@ const longAnu = sequence(
335
337
)
336
338
. skip ( specificToken ( "headless long glyph end" ) )
337
339
. map ( ( [ phrase , morePhrase ] ) => [ phrase , ...morePhrase ] ) ;
340
+
338
341
function nestedPhrasesOnly (
339
342
nestingRule : ReadonlyArray < "en" | "li" | "o" | "e" | "anu" > ,
340
343
) : Parser < MultiplePhrases > {
@@ -471,6 +474,7 @@ const preposition = choice<Preposition>(
471
474
} ) ) ,
472
475
)
473
476
. filter ( filter ( PREPOSITION_RULE ) ) ;
477
+
474
478
function associatedPredicates (
475
479
nestingRule : ReadonlyArray < "li" | "o" | "anu" > ,
476
480
) : Parser < Predicate > {
0 commit comments