summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/ruby.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-06-23 14:35:17 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-06-23 14:35:17 +0200
commit9651f0b464b6540a1427ea8320abaa01caf197b3 (patch)
tree184c42f0fe01ddce26b7d4cc42c124b695a20b3e /lib/coderay/scanners/ruby.rb
parent14f3a4f28341237503a51bfa0764c922bb02bdfa (diff)
parentd7f1669cdf1d48204f3e1b0078d467da448c31d2 (diff)
downloadcoderay-9651f0b464b6540a1427ea8320abaa01caf197b3.tar.gz
Merge branch 'master' into upstream
Diffstat (limited to 'lib/coderay/scanners/ruby.rb')
-rw-r--r--lib/coderay/scanners/ruby.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/ruby.rb b/lib/coderay/scanners/ruby.rb
index c282f31..80165ca 100644
--- a/lib/coderay/scanners/ruby.rb
+++ b/lib/coderay/scanners/ruby.rb
@@ -269,7 +269,7 @@ module Scanners
end
if last_state
- state = last_state
+ state = last_state unless state.is_a?(StringState) # otherwise, a simple 'def"' results in unclosed tokens
last_state = nil
end