rouge 0.0.14 → 0.1.0.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/rouge/lexers/javascript.rb +2 -2
- data/lib/rouge/version.rb +1 -1
- metadata +4 -4
@@ -31,7 +31,7 @@ module Rouge
|
|
31
31
|
)+
|
32
32
|
/ # closing slash
|
33
33
|
(?:[gim]+\b|\B) # flags
|
34
|
-
)x, 'Literal.String.Regex'
|
34
|
+
)x, 'Literal.String.Regex', :pop!
|
35
35
|
|
36
36
|
# if it's not matched by the above r.e., it's not
|
37
37
|
# a valid expression, so we use :bad_regex to eat until the
|
@@ -70,7 +70,7 @@ module Rouge
|
|
70
70
|
|
71
71
|
state :root do
|
72
72
|
rule /\A\s*#!.*?\n/m, 'Comment.Preproc'
|
73
|
-
rule %r(
|
73
|
+
rule %r((?<=\n)(?=\s|/|<!--)), 'Text', :slash_starts_regex
|
74
74
|
mixin :comments_and_whitespace
|
75
75
|
rule %r(\+\+ | -- | ~ | && | \|\| | \\(?=\n) | << | >>>? | ===
|
76
76
|
| !== | \? | : )x,
|
data/lib/rouge/version.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rouge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.0.rc1
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Jay Adkisson
|
@@ -88,9 +88,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
88
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
90
90
|
requirements:
|
91
|
-
- - ! '
|
91
|
+
- - ! '>'
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version:
|
93
|
+
version: 1.3.1
|
94
94
|
requirements: []
|
95
95
|
rubyforge_project: rouge
|
96
96
|
rubygems_version: 1.8.23
|