rouge 0.5.2 → 0.5.3

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
  # TODO: syntax highlight the code block, github style
32
32
  rule /(\n[ \t]*)(```|~~~)(.*?)(\n.*?)(\2)/m do |m|
33
33
  sublexer = Lexer.find_fancy(m[3].strip, m[4])
34
- sublexer ||= Text.new(:token => Str::Backtick)
34
+ sublexer ||= PlainText.new(:token => Str::Backtick)
35
35
 
36
36
  token Text, m[1]
37
37
  token Punctuation, m[2]
@@ -368,7 +368,7 @@ module Rouge
368
368
  push_state = if state_name
369
369
  get_state(state_name)
370
370
  elsif block_given?
371
- State.new(b.inspect, &b).load!(self.class)
371
+ StateDSL.new(b.inspect, &b).to_state(self.class)
372
372
  else
373
373
  # use the top of the stack by default
374
374
  self.state
@@ -1,5 +1,5 @@
1
1
  module Rouge
2
2
  def self.version
3
- "0.5.2"
3
+ "0.5.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rouge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: