rouge 0.0.14 → 0.1.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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(^(?=\s|/|<!--)), 'Text', :slash_starts_regex
73
+ rule %r((?<=\n)(?=\s|/|<!--)), 'Text', :slash_starts_regex
74
74
  mixin :comments_and_whitespace
75
75
  rule %r(\+\+ | -- | ~ | && | \|\| | \\(?=\n) | << | >>>? | ===
76
76
  | !== | \? | : )x,
@@ -1,5 +1,5 @@
1
1
  module Rouge
2
2
  def self.version
3
- "0.0.14"
3
+ "0.1.0.rc1"
4
4
  end
5
5
  end
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.14
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: '0'
93
+ version: 1.3.1
94
94
  requirements: []
95
95
  rubyforge_project: rouge
96
96
  rubygems_version: 1.8.23