apertium/apertium-recursive

PCRE errors on lemmas including #

mr-martian opened this issue · 1 comments

blah = "a# b" ;

N: _;
n: _;
N -> n { 1 };
$ rtx-comp blah.rtx blah.bin
Error: pcre_compile missing )

https://www.pcre.org/original/doc/html/pcrepattern.html#SEC22

# is treated as a comment character which breaks the non-capturing group generated by the compiler. Escaping # would fix this, as would waiting on apertium/lttoolbox#81 which doesn't have this problem.