diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2016-02-13 13:11:31 +0100 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2016-02-13 13:11:43 +0100 |
commit | 415498eaf9417cf30656c4a745eef0409b214afc (patch) | |
tree | bd3cb01f2c5e80fca9bc14aa24fca66bb3a062e6 /lib/coderay | |
parent | 376884d457ac7953914cc84b94fe6404cd904fe0 (diff) | |
download | coderay-415498eaf9417cf30656c4a745eef0409b214afc.tar.gz |
allow indentation of squiggly heredoc delimiter
Diffstat (limited to 'lib/coderay')
-rw-r--r-- | lib/coderay/scanners/ruby.rb | 2 |
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) |