coderay 1.0.7.rc1 → 1.0.7.rc2

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/coderay.rb CHANGED
@@ -78,12 +78,12 @@
78
78
  # Read this to get a general view what CodeRay provides.
79
79
  #
80
80
  # == Scanning
81
- #
82
- # Scanning means analysing an input string, splitting it up into Tokens.
83
- # Each Token knows about what type it is: string, comment, class name, etc.
81
+ #
82
+ # Scanning means analysing an input string, splitting it up into Tokens.
83
+ # Each Token knows about what type it is: string, comment, class name, etc.
84
84
  #
85
- # Each +lang+ (language) has its own Scanner; for example, <tt>:ruby</tt> code is
86
- # handled by CodeRay::Scanners::Ruby.
85
+ # Each +lang+ (language) has its own Scanner; for example, <tt>:ruby</tt> code is
86
+ # handled by CodeRay::Scanners::Ruby.
87
87
  #
88
88
  # CodeRay.scan:: Scan a string in a given language into Tokens.
89
89
  # This is the most common method to use.
@@ -149,12 +149,9 @@ module Scanners
149
149
  if match = scan(/=/) #/
150
150
  encoder.text_token match, :operator
151
151
  state = :attribute_value
152
- elsif scan(/#{ATTR_NAME}/o) || scan(/#{TAG_END}/o)
153
- state = :attribute
154
- next
155
152
  else
156
- encoder.text_token getch, :error
157
153
  state = :attribute
154
+ next
158
155
  end
159
156
 
160
157
  when :attribute_value
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coderay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7.rc1
4
+ version: 1.0.7.rc2
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-05 00:00:00.000000000 Z
12
+ date: 2012-06-19 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.