From eeba23ef0a8fea352d3af8c0b8e01a5c1920202c Mon Sep 17 00:00:00 2001 From: murphy Date: Fri, 21 May 2010 14:21:49 +0000 Subject: Ruby scanner raises exception on unknown state. --- lib/coderay/scanners/ruby.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/coderay/scanners/ruby.rb') diff --git a/lib/coderay/scanners/ruby.rb b/lib/coderay/scanners/ruby.rb index 923d681..0bc3e85 100644 --- a/lib/coderay/scanners/ruby.rb +++ b/lib/coderay/scanners/ruby.rb @@ -416,6 +416,8 @@ module Scanners end state = :initial + else + raise_inspect 'Unknown state: %p' % [state], encoder end end -- cgit v1.2.1