Skip to content

Commit

Permalink
Merge pull request #426 from Wuerfel21/W21-remove-annoying-backtick
Browse files Browse the repository at this point in the history
Fix spurious backtick in unknown symbol message
  • Loading branch information
totalspectrum committed Jan 22, 2024
2 parents 5cdd425 + 6e05947 commit 96e342e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Test/Expect/error01.err
Original file line number Diff line number Diff line change
@@ -1 +1 @@
error01.spin:5: error: Unknown symbol `x'
error01.spin:5: error: Unknown symbol 'x'
2 changes: 1 addition & 1 deletion Test/Expect/error08.err
Original file line number Diff line number Diff line change
@@ -1 +1 @@
error08.spin:3: error: Unknown symbol `a'
error08.spin:3: error: Unknown symbol 'a'
2 changes: 1 addition & 1 deletion frontends/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ ERROR_UNKNOWN_SYMBOL(AST *ast)
} else {
name = "";
}
ERROR(ast, "Unknown symbol `%s'", name);
ERROR(ast, "Unknown symbol '%s'", name);
// add a definition for this symbol so we don't get this error again
if (curfunc) {
AddLocalVariable(curfunc, ast, NULL, SYM_LOCALVAR);
Expand Down

0 comments on commit 96e342e

Please sign in to comment.