diff --git a/CHANGELOG.md b/CHANGELOG.md index 21e5e54eec..540d02867b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ This log summarizes the changes in each released version of Rouge. Rouge follows [Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html). +## version 3.11.1: 2019-10-02 + +[Comparison with the previous version](https://github.com/rouge-ruby/rouge/compare/v3.11.0...v3.11.1) + +- Perl Lexer + - Fix overeager quoting constructs in Perl lexer ([#1335](https://github.com/rouge-ruby/rouge/pull/1335/) by Brent Laabs) + ## version 3.11.0: 2019-09-18 [Comparison with the previous version](https://github.com/rouge-ruby/rouge/compare/v3.10.0...v3.11.0) diff --git a/lib/rouge/lexers/perl.rb b/lib/rouge/lexers/perl.rb index 7c9bcdb93b..2b404273bf 100644 --- a/lib/rouge/lexers/perl.rb +++ b/lib/rouge/lexers/perl.rb @@ -127,7 +127,7 @@ def self.detect?(text) rule %r/(q|qq|qw|qr|qx)\(/, Str::Other, :rb_string rule %r/(q|qq|qw|qr|qx)\[/, Str::Other, :sb_string rule %r/(q|qq|qw|qr|qx), qq(str7 $str1), qx`false`, qr/foo/ ); +$a = qr/bar/i; +my %x = ( q_ThisString => "doesnt_overrun as if it were q-quoted" ); + # from http://gist.github.com/485595 use strict; use warnings;