summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/ruby.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-07-14 02:49:16 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-07-14 02:49:16 +0200
commitbf395bd14ed7f63aab84955f6768f59965e3a73e (patch)
tree870e3ee4980401f43c2dc9a34d2e8343ef3a20ca /lib/coderay/scanners/ruby.rb
parentffe0c90999c0b7255a5dfc608c84e683440475b1 (diff)
parent7493dcbfded42686169027a158c18c5312a3af24 (diff)
downloadcoderay-bf395bd14ed7f63aab84955f6768f59965e3a73e.tar.gz
Merge branch 'master' into cleanup-output
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