[Lldb-commits] [lldb] [lldb] colorize symbols in image lookup with a regex pattern (PR #69422)

José Lira Junior via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 7 08:38:37 PST 2023


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


More information about the lldb-commits mailing list