coderay 1.0.7 → 1.0.8.rc1

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,7 +17,7 @@ module Encoders
17
17
 
18
18
  anchor_prefix = options[:line_number_anchors]
19
19
  anchor_prefix = 'line' if anchor_prefix == true
20
- anchor_prefix = anchor_prefix.to_s[/\w+/] if anchor_prefix
20
+ anchor_prefix = anchor_prefix.to_s[/[\w-]+/] if anchor_prefix
21
21
  anchoring =
22
22
  if anchor_prefix
23
23
  proc do |line|
@@ -62,7 +62,6 @@ module CodeRay
62
62
  :content => '31',
63
63
  :delimiter => '1;29',
64
64
  :modifier => '35',
65
- :function => '1;29'
66
65
  },
67
66
  :reserved => '1;31',
68
67
  :shell => {
@@ -75,6 +74,7 @@ module CodeRay
75
74
  :modifier => '1;32',
76
75
  :escape => '1;36',
77
76
  :delimiter => '1;32',
77
+ :char => '1;36',
78
78
  },
79
79
  :symbol => '1;32',
80
80
  :tag => '1;34',
@@ -69,6 +69,7 @@ module Scanners
69
69
  def setup
70
70
  @state = :initial
71
71
  @plain_string_content = nil
72
+ @in_tag = nil
72
73
  end
73
74
 
74
75
  def scan_java_script encoder, code
@@ -83,7 +84,8 @@ module Scanners
83
84
  def scan_tokens encoder, options
84
85
  state = options[:state] || @state
85
86
  plain_string_content = @plain_string_content
86
- in_tag = in_attribute = nil
87
+ in_tag = @in_tag
88
+ in_attribute = nil
87
89
 
88
90
  encoder.begin_group :string if state == :attribute_value_string
89
91
 
@@ -237,6 +239,7 @@ module Scanners
237
239
  if options[:keep_state]
238
240
  @state = state
239
241
  @plain_string_content = plain_string_content
242
+ @in_tag = in_tag
240
243
  end
241
244
 
242
245
  encoder.end_group :string if state == :attribute_value_string
@@ -1,3 +1,3 @@
1
1
  module CodeRay
2
- VERSION = '1.0.7'
2
+ VERSION = '1.0.8'
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coderay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
5
- prerelease:
4
+ version: 1.0.8.rc1
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kornelius Kalnbach
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-25 00:00:00.000000000 Z
12
+ date: 2012-10-07 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Fast and easy syntax highlighting for selected languages, written in
15
15
  Ruby. Comes with RedCloth integration and LOC counter.
@@ -110,12 +110,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  none: false
112
112
  requirements:
113
- - - ! '>='
113
+ - - ! '>'
114
114
  - !ruby/object:Gem::Version
115
- version: '0'
115
+ version: 1.3.1
116
116
  requirements: []
117
117
  rubyforge_project: coderay
118
- rubygems_version: 1.8.21
118
+ rubygems_version: 1.8.24
119
119
  signing_key:
120
120
  specification_version: 3
121
121
  summary: Fast syntax highlighting for selected languages.