apertium / apertium-recursive

Recursive structural transfer module for Apertium
https://wiki.apertium.org/wiki/Apertium-recursive
GNU General Public License v3.0
6 stars 4 forks source link

PCRE errors on lemmas including # #70

Closed mr-martian closed 3 years ago

mr-martian commented 3 years ago
blah = "a# b" ;

N: _;
n: _;
N -> n { 1 };
$ rtx-comp blah.rtx blah.bin
Error: pcre_compile missing )
mr-martian commented 3 years ago

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 https://github.com/apertium/lttoolbox/issues/81 which doesn't have this problem.