aboutsummaryrefslogtreecommitdiffstats
path: root/lib/parsetools/include
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2010-11-01 14:29:21 +0100
committerHans Bolinder <[email protected]>2010-11-01 14:29:21 +0100
commit94ffa8407566de48f55036ce705924d7ee111d25 (patch)
treeed5a43ad408f5dbda20f9902992f9e39224d97be /lib/parsetools/include
parentff182ad7f0b4422f961b4b5336b747cc9f3b2cdf (diff)
downloadotp-94ffa8407566de48f55036ce705924d7ee111d25.tar.gz
otp-94ffa8407566de48f55036ce705924d7ee111d25.tar.bz2
otp-94ffa8407566de48f55036ce705924d7ee111d25.zip
Improve formating of Yecc error messages
The formating of Yecc's error messages has been improved. (Thanks to Joe Armstrong.)
Diffstat (limited to 'lib/parsetools/include')
-rw-r--r--lib/parsetools/include/yeccpre.hrl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parsetools/include/yeccpre.hrl b/lib/parsetools/include/yeccpre.hrl
index 39dea0552d..80a3afbdb6 100644
--- a/lib/parsetools/include/yeccpre.hrl
+++ b/lib/parsetools/include/yeccpre.hrl
@@ -167,7 +167,7 @@ yecctoken2string({char,_,C}) -> io_lib:write_char(C);
yecctoken2string({var,_,V}) -> io_lib:format("~s", [V]);
yecctoken2string({string,_,S}) -> io_lib:write_unicode_string(S);
yecctoken2string({reserved_symbol, _, A}) -> io_lib:write(A);
-yecctoken2string({_Cat, _, Val}) -> io_lib:write(Val);
+yecctoken2string({_Cat, _, Val}) -> io_lib:format("~p",[Val]);
yecctoken2string({dot, _}) -> "'.'";
yecctoken2string({'$end', _}) ->
[];