summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2016-02-13 13:11:31 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2016-02-13 13:11:43 +0100
commit415498eaf9417cf30656c4a745eef0409b214afc (patch)
treebd3cb01f2c5e80fca9bc14aa24fca66bb3a062e6
parent376884d457ac7953914cc84b94fe6404cd904fe0 (diff)
downloadcoderay-415498eaf9417cf30656c4a745eef0409b214afc.tar.gz
allow indentation of squiggly heredoc delimiter
-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 24ab71f..f7feb46 100644
--- a/lib/coderay/scanners/ruby.rb
+++ b/lib/coderay/scanners/ruby.rb
@@ -214,7 +214,7 @@ module Scanners
encoder.end_group kind
heredocs ||= [] # create heredocs if empty
heredocs << self.class::StringState.new(kind, quote != "'", delim,
- self[1] == '-' ? :indented : :linestart)
+ self[1] ? :indented : :linestart)
value_expected = false
elsif value_expected && match = scan(/#{patterns::FANCY_STRING_START}/o)