When no space is given immediately after a clef, e.g., "(c4)IN(ed~) nó(g)mi(hj)ne(j)" it was not finding the last syllable properly, because the number of syllables was not equal to the length of the matches array, since the first match, the clef, had no lyrics.  I'm not sure that this is completely valid GABC, since all the examples do give a space after the clef, but it doesn't cause a problem for Gregorio to do it this way, and there are at least 30 scores in GregoBase that begin like this with no space between the clef and first syllable
When no space is given immediately after a clef, e.g., "(c4)IN(ed~) nó(g)mi(hj)ne(j)" it was not finding the last syllable properly, because the number of syllables was not equal to the length of the matches array, since the first match, the clef, had no lyrics.  I'm not sure that this is completely valid GABC, since all the examples do give a space after the clef, but it doesn't cause a problem for Gregorio to do it this way, and there are at least 30 scores in GregoBase that begin like this with no space between the clef and first syllable

frmatthew/exsurge,frmatthew/exsurge