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 +4 -4
- data/lib/rouge/lexers/perl.rb +11 -7
- data/lib/rouge/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e057904ace20f94e20ef39b820ad92f1f96a1c0
|
4
|
+
data.tar.gz: 8fac0621b09a5367650c20c794e8c6841c47ee7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5945c9eb78147ed1b860729abbb8770aae2d118ad1a57aeabe36d9d22cee6fb1d3bf39fa5ab65c2de9b9d1c8d3a641c02f6c551cfc01187d9399913b0ad2cb9e
|
7
|
+
data.tar.gz: 1b3f8b856100149918a95ddfd2969d10f710705f7dc10b63986c60ebccd607c3cd96f1c7943c97a33c2955dedfa18e7694cf94933ca5a6869ce0ab0aef975612
|
data/lib/rouge/lexers/perl.rb
CHANGED
@@ -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/(\\\\|\\/|[^/])*/(\\\\|\\/|[^/])*/[
|
81
|
-
rule %r(s!(\\\\|\\!|[^!])*!(\\\\|\\!|[^!])*![
|
82
|
-
rule %r(s\\(\\\\|[^\\])*\\(\\\\|[^\\])*\\[
|
83
|
-
rule %r(s@(\\\\|\\@|[^@])*@(\\\\|\\@|[^@])*@[
|
84
|
-
rule %r(s%(\\\\|\\%|[^%])*%(\\\\|\\%|[^%])*%[
|
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])*/[
|
92
|
+
rule %r(m?/(\\\\|\\/|[^/\n])*/[msixpodualngc]*), re_tok
|
93
93
|
rule %r(m(?=[/!\\{<\[\(@%\$])), re_tok, :balanced_regex
|
94
|
-
|
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
|
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: 3.2.
|
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-
|
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.
|
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
|