summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/ruby.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-06-23 14:36:53 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-06-23 14:36:53 +0200
commit8c3c0c49a98eb8daceb69d0b233d054fbbccc49e (patch)
tree52dfc1b4abe110580a51ec0c0d056d1044c44151 /lib/coderay/scanners/ruby.rb
parent7ada74c8f0f77815393e887db83e1d2c36ce7235 (diff)
parent9651f0b464b6540a1427ea8320abaa01caf197b3 (diff)
downloadcoderay-8c3c0c49a98eb8daceb69d0b233d054fbbccc49e.tar.gz
Merge branch 'master' into css-in-html
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