document markup does not resolve overlapping markups correctly
patrickfrey opened this issue · 1 comments
patrickfrey commented
If you want to markup a document with matching patterns, you have either to declare the patterns as exclusive. (%MATCHER exclusive) or rely on the correct implementation of the ousting of matches with lower priority by matches of higher priority. The later mechanism implemented in
void TokenMarkupContextInterface::putMarkup(
const analyzer::Position& start,
const analyzer::Position& end,
const analyzer::TokenMarkup& markup,
unsigned int level);
does not work. Neither are overlapping matches in the content marked up correctly, nor does the mechanism of eliminating lower level markup of areas by covering higher level areas work.
patrickfrey commented
Current workaround: Do not put overlapping markups.