rouge 3.2.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3cb5bb343a9196b359989181d97b571f0448e99e
4
- data.tar.gz: eed1d68491017119f8d68103b62624143a67e633
3
+ metadata.gz: 4e057904ace20f94e20ef39b820ad92f1f96a1c0
4
+ data.tar.gz: 8fac0621b09a5367650c20c794e8c6841c47ee7d
5
5
  SHA512:
6
- metadata.gz: e500f0918908c3345cc7604977b06659e1225124dff3f9444d91a56a74c1659d6e9bf0e8add27cb6c4024134639f3bc312cfe919627cc5177e74a8910f55dcd0
7
- data.tar.gz: 1c0fe8631b0cb1a4ef332bf8e73a5164a195f301d6371827ec9fe1f162dd2cbf3ed382ff02efe8d93c98a44ed8c0c33d4b9fde3c71fc8b9f629deb8701ca010b
6
+ metadata.gz: 5945c9eb78147ed1b860729abbb8770aae2d118ad1a57aeabe36d9d22cee6fb1d3bf39fa5ab65c2de9b9d1c8d3a641c02f6c551cfc01187d9399913b0ad2cb9e
7
+ data.tar.gz: 1b3f8b856100149918a95ddfd2969d10f710705f7dc10b63986c60ebccd607c3cd96f1c7943c97a33c2955dedfa18e7694cf94933ca5a6869ce0ab0aef975612
@@ -77,11 +77,11 @@ module Rouge
77
77
  rule /(?:eq|lt|gt|le|ge|ne|not|and|or|cmp)\b/, Operator::Word
78
78
 
79
79
  # common delimiters
80
- rule %r(s/(\\\\|\\/|[^/])*/(\\\\|\\/|[^/])*/[egimosx]*), re_tok
81
- rule %r(s!(\\\\|\\!|[^!])*!(\\\\|\\!|[^!])*![egimosx]*), re_tok
82
- rule %r(s\\(\\\\|[^\\])*\\(\\\\|[^\\])*\\[egimosx]*), re_tok
83
- rule %r(s@(\\\\|\\@|[^@])*@(\\\\|\\@|[^@])*@[egimosx]*), re_tok
84
- rule %r(s%(\\\\|\\%|[^%])*%(\\\\|\\%|[^%])*%[egimosx]*), re_tok
80
+ rule %r(s/(\\\\|\\/|[^/])*/(\\\\|\\/|[^/])*/[msixpodualngc]*), re_tok
81
+ rule %r(s!(\\\\|\\!|[^!])*!(\\\\|\\!|[^!])*![msixpodualngc]*), re_tok
82
+ rule %r(s\\(\\\\|[^\\])*\\(\\\\|[^\\])*\\[msixpodualngc]*), re_tok
83
+ rule %r(s@(\\\\|\\@|[^@])*@(\\\\|\\@|[^@])*@[msixpodualngc]*), re_tok
84
+ rule %r(s%(\\\\|\\%|[^%])*%(\\\\|\\%|[^%])*%[msixpodualngc]*), re_tok
85
85
 
86
86
  # balanced delimiters
87
87
  rule %r(s{(\\\\|\\}|[^}])*}\s*), re_tok, :balanced_regex
@@ -89,9 +89,13 @@ module Rouge
89
89
  rule %r(s\[(\\\\|\\\]|[^\]])*\]\s*), re_tok, :balanced_regex
90
90
  rule %r[s\((\\\\|\\\)|[^\)])*\)\s*], re_tok, :balanced_regex
91
91
 
92
- rule %r(m?/(\\\\|\\/|[^/\n])*/[gcimosx]*), re_tok
92
+ rule %r(m?/(\\\\|\\/|[^/\n])*/[msixpodualngc]*), re_tok
93
93
  rule %r(m(?=[/!\\{<\[\(@%\$])), re_tok, :balanced_regex
94
- rule %r(((?<==~)|(?<=\())\s*/(\\\\|\\/|[^/])*/[gcimosx]*),
94
+
95
+ # Perl allows any non-whitespace character to delimit
96
+ # a regex when `m` is used.
97
+ rule %r(m(\S).*\1[msixpodualngc]*), re_tok
98
+ rule %r(((?<==~)|(?<=\())\s*/(\\\\|\\/|[^/])*/[msixpodualngc]*),
95
99
  re_tok, :balanced_regex
96
100
 
97
101
  rule /\s+/, Text
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rouge
4
4
  def self.version
5
- "3.2.0"
5
+ "3.2.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rouge
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeanine Adkisson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-02 00:00:00.000000000 Z
11
+ date: 2018-08-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rouge aims to a be a simple, easy-to-extend drop-in replacement for pygments.
14
14
  email:
@@ -362,7 +362,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
362
362
  version: '0'
363
363
  requirements: []
364
364
  rubyforge_project: rouge
365
- rubygems_version: 2.4.5.1
365
+ rubygems_version: 2.6.11
366
366
  signing_key:
367
367
  specification_version: 4
368
368
  summary: A pure-ruby colorizer based on pygments