rouge 4.1.1 → 4.1.2

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
  SHA256:
3
- metadata.gz: 239a3d42bfd3954d0e6f97efe4265a99cfa719bc2d0815a3fbfa1d47cb58fa66
4
- data.tar.gz: 54cccb6161415559baa8a6d8003f9bf9c9c3eb8f241b4c21234c96f1b3d9a148
3
+ metadata.gz: b257e13caca69f1c164bafecc9554156281692d4450a179eea3ab8e159306072
4
+ data.tar.gz: f28c7411b52d80ddc665dee0372e0d9ce0cea1885cb6f0acdb00f4318c573116
5
5
  SHA512:
6
- metadata.gz: 1463511e91aee04d120e090808e232ac5d07435971b3072716046bcc6d43bf5f86c3ef9c1f11b2cfdefded88259951d299f6b476437744ac0861e3dc0516b55f
7
- data.tar.gz: a4aba9526815bf9d28a6ae7e0d02e3df29b250fa76b53d1c7bca0500cdcc8bd641198db02448e495bea510ac9b3bc1b42fb09ddc3e76dc1d501594074e7602fd
6
+ metadata.gz: 3d853e1e144b35edbe8c0fb6155642455bfb9f0c7277394dee742745ecb53746090e26882b8690f130aae197612793f0054254529351b066fc8a54641d50886d
7
+ data.tar.gz: a21720c7fc098dd96c1ca707e30da2ba7de0ae11ccb8fc62a1beccda88d5ecbfb615f209e2a531dc113885a3cb5eaba852ce88e43c4c9d3f26420f4edb86c99b
@@ -90,8 +90,6 @@ module Rouge
90
90
 
91
91
  rule %r/@#{dotted_identifier}/i, Name::Decorator
92
92
 
93
- rule %r/(>>>|\.\.\.)\B/, Generic::Prompt
94
-
95
93
  rule %r/(in|is|and|or|not)\b/, Operator::Word
96
94
  rule %r/(<<|>>|\/\/|\*\*)=?/, Operator
97
95
  rule %r/[-~+\/*%=<>&^|@]=?|!=/, Operator
@@ -182,7 +180,7 @@ module Rouge
182
180
  end
183
181
 
184
182
  state :generic_string do
185
- rule %r/>>>|\.\.\./, Generic::Prompt, :doctest
183
+ rule %r/^\s*(>>>|\.\.\.)\B/, Generic::Prompt, :doctest
186
184
  rule %r/[^'"\\{]+?/, Str
187
185
  rule %r/{{/, Str
188
186
 
@@ -14,8 +14,6 @@ module Rouge
14
14
  entity_name = /[a-zA-Z][a-zA-Z0-9]*/
15
15
  variable_naming = /_?#{entity_name}/
16
16
 
17
- entities = []
18
-
19
17
  state :whitespaces_and_comments do
20
18
  rule %r/\s+/m, Text::Whitespace
21
19
  rule %r(//.*$), Comment::Single
@@ -98,6 +96,12 @@ module Rouge
98
96
  rule %r/\(|\)|=/, Text
99
97
  rule %r/,/, Punctuation
100
98
  end
99
+
100
+ private
101
+
102
+ def entities
103
+ @entities ||= []
104
+ end
101
105
  end
102
106
  end
103
107
  end
data/lib/rouge/version.rb CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Rouge
5
5
  def self.version
6
- "4.1.1"
6
+ "4.1.2"
7
7
  end
8
8
  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: 4.1.1
4
+ version: 4.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeanine Adkisson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-15 00:00:00.000000000 Z
11
+ date: 2023-06-01 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: