junior-jl wrote:

> > I tried this now and I guess it's not correct. For example, if I have a 
> > prefix (red color) and no suffix, the text does not go back to normal and 
> > will be forever red. Or am I doing something wrong?
> 
> This is expected. We don't expect many people to do this but if they do, 
> that's their mistake. A more realistic use might be prefix=`!!!!` and 
> suffix=`""`. If you wanted to "highlight" matches in a way that wasn't 
> colour, niche, but it's possible with the existing highlighters so might as 
> well go with it.

I see now. Thank you for the explanation.

The last commit adds the test cases and change the `if` condition.

https://github.com/llvm/llvm-project/pull/69422
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to