coderay 0.9.6 → 0.9.7.pre

Sign up to get free protection for your applications and to get access to all the features.
data/lib/coderay.rb CHANGED
@@ -134,7 +134,7 @@ module CodeRay
134
134
  # Minor: feature milestone
135
135
  # Teeny: development state, 0 for pre-release
136
136
  # Revision: Subversion Revision number (generated on rake gem:make)
137
- VERSION = '0.9.6'
137
+ VERSION = '0.9.7'
138
138
 
139
139
  require 'coderay/tokens'
140
140
  require 'coderay/token_classes'
@@ -47,8 +47,8 @@ module Scanners
47
47
  '/' => /[^\\\/]+/,
48
48
  }
49
49
  KEY_CHECK_PATTERN = {
50
- "'" => / [^\\']* (?: \\.? [^\\']* )* '? \s* : /x,
51
- '"' => / [^\\"]* (?: \\.? [^\\"]* )* "? \s* : /x,
50
+ "'" => / (?> [^\\']* (?: \\.? [^\\']* )* ) '? \s* : /x,
51
+ '"' => / (?> [^\\"]* (?: \\.? [^\\"]* )* ) "? \s* : /x,
52
52
  }
53
53
 
54
54
  def scan_tokens tokens, options
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coderay
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
5
- prerelease: false
4
+ hash: 961915920
5
+ prerelease: true
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 6
10
- version: 0.9.6
9
+ - 7
10
+ - pre
11
+ version: 0.9.7.pre
11
12
  platform: ruby
12
13
  authors:
13
14
  - murphy
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-11-25 00:00:00 +13:00
19
+ date: 2011-01-14 00:00:00 +01:00
19
20
  default_executable:
20
21
  dependencies: []
21
22
 
@@ -137,12 +138,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
138
  required_rubygems_version: !ruby/object:Gem::Requirement
138
139
  none: false
139
140
  requirements:
140
- - - ">="
141
+ - - ">"
141
142
  - !ruby/object:Gem::Version
142
- hash: 3
143
+ hash: 25
143
144
  segments:
144
- - 0
145
- version: "0"
145
+ - 1
146
+ - 3
147
+ - 1
148
+ version: 1.3.1
146
149
  requirements: []
147
150
 
148
151
  rubyforge_project: coderay