[llvm] [MC][RISCV] Add assembly syntax highlighting for RISCV (PR #65853)

Jessica Clarke via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 10 14:53:54 PDT 2023


================
@@ -269,7 +293,7 @@ void RISCVInstPrinter::printVMaskReg(const MCInst *MI, unsigned OpNo,
     return;
   O << ", ";
   printRegName(O, MO.getReg());
-  O << ".t";
+  markup(O, Markup::Register) << ".t";
----------------
jrtc27 wrote:

Highlighting the two parts of the register separately with a reset and re-colour in the middle seems a bit ugly

https://github.com/llvm/llvm-project/pull/65853


More information about the llvm-commits mailing list