summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/python.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-03-11 02:28:23 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2013-03-11 02:28:23 +0100
commit46a947538f2e4c51a5f71478d3c7b405e8c71772 (patch)
tree3b91e5b213f35b895905e75fd0e8b13e4bba194a /lib/coderay/scanners/python.rb
parent2fd96c38b2a488205267aa8bd402a8cfe26efcb1 (diff)
parent1a3f0435a28319a08ec33c27ab2194c05395bab7 (diff)
downloadcoderay-46a947538f2e4c51a5f71478d3c7b405e8c71772.tar.gz
Merge branch 'master' into sass-scanner
Diffstat (limited to 'lib/coderay/scanners/python.rb')
-rw-r--r--lib/coderay/scanners/python.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/python.rb b/lib/coderay/scanners/python.rb
index cbdbbdb..a9492ab 100644
--- a/lib/coderay/scanners/python.rb
+++ b/lib/coderay/scanners/python.rb
@@ -133,7 +133,7 @@ module Scanners
elsif match = scan(/ \\ | $ /x)
encoder.end_group string_type
string_type = nil
- encoder.text_token match, :error
+ encoder.text_token match, :error unless match.empty?
state = :initial
else
raise_inspect "else case \" reached; %p not handled." % peek(1), encoder, state