summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2016-02-14 15:09:28 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2016-02-14 15:09:28 +0100
commitdcf73a6b5bae19a6592f4be17105005474cec2d3 (patch)
tree3a7a0d94f715d5f5184931e8d9b1006a95582eb0 /lib
parent6b80e1efb6a44e3eb647eb396499db17cc6def47 (diff)
downloadcoderay-dcf73a6b5bae19a6592f4be17105005474cec2d3.tar.gz
nicer debug output
Diffstat (limited to 'lib')
-rw-r--r--lib/coderay/rule_based_scanner.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/rule_based_scanner.rb b/lib/coderay/rule_based_scanner.rb
index 334c08c..653b43f 100644
--- a/lib/coderay/rule_based_scanner.rb
+++ b/lib/coderay/rule_based_scanner.rb
@@ -27,7 +27,7 @@ module CodeRay
@first = true
instance_eval(&block)
@code << " else\n"
- @code << " puts 'no match for #{names.map(&:inspect).join(', ')}'\n" if $DEBUG
+ @code << " puts \"no match for \#{state.inspect} => skip char\"\n" if $DEBUG
@code << " encoder.text_token getch, :error\n"
@code << " end\n"
@code << " \n"