diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-04-10 06:37:12 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-04-10 06:37:12 -0700 |
commit | c739fd374884676993c88f7a8e223988d622e5d6 (patch) | |
tree | 6c4aa8b8953c66f502c1ab91eacd97e4dfbc7355 | |
parent | be3f4ac0a0582347e663eb58989e32fe54018d82 (diff) | |
download | txr-c739fd374884676993c88f7a8e223988d622e5d6.tar.gz txr-c739fd374884676993c88f7a8e223988d622e5d6.tar.bz2 txr-c739fd374884676993c88f7a8e223988d622e5d6.zip |
parser: duplicate package prefix in diagnostic.
* parser.l (directive_tok): Fix printing of duplicate package
prefix on symbol.
-rw-r--r-- | parser.l | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1080,8 +1080,8 @@ static int directive_tok(scanner_t *yyscanner, int tok, int state) val package = symbol_package(sym); if (package != user_package && package != keyword_package) { - yyerrprepf(yyg, lit("~s: this is ~a:~s: not from the usr package"), - sym, package_name(package), sym, nao); + yyerrprepf(yyg, lit("~a: this is ~a:~a, not usr:~a"), + symname, package_name(package), symname, symname, nao); tok = ERRTOK; } } |