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 +4 -4
- data/lib/rouge/lexers/python.rb +1 -3
- data/lib/rouge/lexers/wollok.rb +6 -2
- data/lib/rouge/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b257e13caca69f1c164bafecc9554156281692d4450a179eea3ab8e159306072
|
4
|
+
data.tar.gz: f28c7411b52d80ddc665dee0372e0d9ce0cea1885cb6f0acdb00f4318c573116
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d853e1e144b35edbe8c0fb6155642455bfb9f0c7277394dee742745ecb53746090e26882b8690f130aae197612793f0054254529351b066fc8a54641d50886d
|
7
|
+
data.tar.gz: a21720c7fc098dd96c1ca707e30da2ba7de0ae11ccb8fc62a1beccda88d5ecbfb615f209e2a531dc113885a3cb5eaba852ce88e43c4c9d3f26420f4edb86c99b
|
data/lib/rouge/lexers/python.rb
CHANGED
@@ -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
|
183
|
+
rule %r/^\s*(>>>|\.\.\.)\B/, Generic::Prompt, :doctest
|
186
184
|
rule %r/[^'"\\{]+?/, Str
|
187
185
|
rule %r/{{/, Str
|
188
186
|
|
data/lib/rouge/lexers/wollok.rb
CHANGED
@@ -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
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.
|
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-
|
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:
|