summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/ruby.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-06-23 05:34:08 -0700
committerKornelius Kalnbach <murphy@rubychan.de>2013-06-23 05:34:08 -0700
commitd7f1669cdf1d48204f3e1b0078d467da448c31d2 (patch)
tree80a8c1ab927661743329f10cd1dd415f2a8bca0f /lib/coderay/scanners/ruby.rb
parent1e330f16c21c45eff375ba3b12f966c76ba0b393 (diff)
parent56f4163e99689912c3797e5d3b2b97244ce65782 (diff)
downloadcoderay-d7f1669cdf1d48204f3e1b0078d467da448c31d2.tar.gz
Merge pull request #144 from rubychan/fix-with-debug-lint
Fixes using DebugLint
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