From fa8377401a356a7108015a8f58605e60de8149a1 Mon Sep 17 00:00:00 2001 From: Walter Bright Date: Sun, 14 May 2017 10:33:58 -0700 Subject: [PATCH] toir.d: fix error messages to use syntax highlighting --- src/ddmd/toir.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ddmd/toir.d b/src/ddmd/toir.d index c2ed284b0975..81c34474b541 100644 --- a/src/ddmd/toir.d +++ b/src/ddmd/toir.d @@ -225,7 +225,7 @@ elem *getEthis(Loc loc, IRState *irs, Dsymbol fd) { if (!irs.sthis) // if no frame pointer for this function { - fd.error(loc, "is a nested function and cannot be accessed from %s", irs.getFunc().toPrettyChars()); + fd.error(loc, "is a nested function and cannot be accessed from `%s`", irs.getFunc().toPrettyChars()); return el_long(TYnptr, 0); // error recovery } @@ -257,7 +257,7 @@ elem *getEthis(Loc loc, IRState *irs, Dsymbol fd) if (!ad) { Lnoframe: - irs.getFunc().error(loc, "cannot get frame pointer to %s", fd.toPrettyChars()); + irs.getFunc().error(loc, "cannot get frame pointer to `%s`", fd.toPrettyChars()); return el_long(TYnptr, 0); // error recovery } ClassDeclaration cd = ad.isClassDeclaration();