diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2016-02-13 12:10:18 +0100 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2016-02-13 12:10:18 +0100 |
commit | 376884d457ac7953914cc84b94fe6404cd904fe0 (patch) | |
tree | fd05b55ff1044d50f35f4f93cef046d0f30a3f51 /lib/coderay/scanners/ruby/patterns.rb | |
parent | d9d1eedcb235b371683eed22a6e4217caef73ffa (diff) | |
download | coderay-ruby-2.3.tar.gz |
add support for Ruby 2.3 squiggly heredocruby-2.3
Diffstat (limited to 'lib/coderay/scanners/ruby/patterns.rb')
-rw-r--r-- | lib/coderay/scanners/ruby/patterns.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/ruby/patterns.rb b/lib/coderay/scanners/ruby/patterns.rb index 0b36e13..3dd6ad5 100644 --- a/lib/coderay/scanners/ruby/patterns.rb +++ b/lib/coderay/scanners/ruby/patterns.rb @@ -114,7 +114,7 @@ module Scanners # NOTE: This is not completely correct, but # nobody needs heredoc delimiters ending with \n. HEREDOC_OPEN = / - << (-)? # $1 = float + << ([-~])? # $1 = float (?: ( [A-Za-z_0-9]+ ) # $2 = delim | |