regexp_parser 0.1.6 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/ChangeLog +57 -0
  3. data/Gemfile +8 -0
  4. data/LICENSE +1 -1
  5. data/README.md +225 -206
  6. data/Rakefile +9 -3
  7. data/lib/regexp_parser.rb +7 -11
  8. data/lib/regexp_parser/expression.rb +72 -14
  9. data/lib/regexp_parser/expression/classes/alternation.rb +3 -16
  10. data/lib/regexp_parser/expression/classes/conditional.rb +57 -0
  11. data/lib/regexp_parser/expression/classes/free_space.rb +17 -0
  12. data/lib/regexp_parser/expression/classes/keep.rb +7 -0
  13. data/lib/regexp_parser/expression/classes/set.rb +28 -7
  14. data/lib/regexp_parser/expression/methods/strfregexp.rb +113 -0
  15. data/lib/regexp_parser/expression/methods/tests.rb +116 -0
  16. data/lib/regexp_parser/expression/methods/traverse.rb +63 -0
  17. data/lib/regexp_parser/expression/quantifier.rb +10 -0
  18. data/lib/regexp_parser/expression/sequence.rb +45 -0
  19. data/lib/regexp_parser/expression/subexpression.rb +29 -1
  20. data/lib/regexp_parser/lexer.rb +31 -8
  21. data/lib/regexp_parser/parser.rb +118 -45
  22. data/lib/regexp_parser/scanner.rb +1745 -1404
  23. data/lib/regexp_parser/scanner/property.rl +57 -3
  24. data/lib/regexp_parser/scanner/scanner.rl +161 -34
  25. data/lib/regexp_parser/syntax.rb +12 -2
  26. data/lib/regexp_parser/syntax/ruby/1.9.1.rb +3 -3
  27. data/lib/regexp_parser/syntax/ruby/1.9.3.rb +2 -7
  28. data/lib/regexp_parser/syntax/ruby/2.0.0.rb +4 -1
  29. data/lib/regexp_parser/syntax/ruby/2.1.4.rb +13 -0
  30. data/lib/regexp_parser/syntax/ruby/2.1.5.rb +13 -0
  31. data/lib/regexp_parser/syntax/ruby/2.1.rb +2 -2
  32. data/lib/regexp_parser/syntax/ruby/2.2.0.rb +16 -0
  33. data/lib/regexp_parser/syntax/ruby/2.2.rb +8 -0
  34. data/lib/regexp_parser/syntax/tokens.rb +19 -2
  35. data/lib/regexp_parser/syntax/tokens/conditional.rb +22 -0
  36. data/lib/regexp_parser/syntax/tokens/keep.rb +14 -0
  37. data/lib/regexp_parser/syntax/tokens/unicode_property.rb +45 -4
  38. data/lib/regexp_parser/token.rb +23 -8
  39. data/lib/regexp_parser/version.rb +5 -0
  40. data/regexp_parser.gemspec +35 -0
  41. data/test/expression/test_all.rb +6 -1
  42. data/test/expression/test_base.rb +19 -0
  43. data/test/expression/test_conditionals.rb +114 -0
  44. data/test/expression/test_free_space.rb +33 -0
  45. data/test/expression/test_set.rb +61 -0
  46. data/test/expression/test_strfregexp.rb +214 -0
  47. data/test/expression/test_subexpression.rb +24 -0
  48. data/test/expression/test_tests.rb +99 -0
  49. data/test/expression/test_to_h.rb +48 -0
  50. data/test/expression/test_to_s.rb +46 -0
  51. data/test/expression/test_traverse.rb +164 -0
  52. data/test/lexer/test_all.rb +16 -3
  53. data/test/lexer/test_conditionals.rb +101 -0
  54. data/test/lexer/test_keep.rb +24 -0
  55. data/test/lexer/test_literals.rb +51 -51
  56. data/test/lexer/test_nesting.rb +62 -62
  57. data/test/lexer/test_refcalls.rb +18 -20
  58. data/test/parser/test_all.rb +18 -3
  59. data/test/parser/test_alternation.rb +11 -14
  60. data/test/parser/test_conditionals.rb +148 -0
  61. data/test/parser/test_escapes.rb +29 -5
  62. data/test/parser/test_free_space.rb +139 -0
  63. data/test/parser/test_groups.rb +40 -0
  64. data/test/parser/test_keep.rb +21 -0
  65. data/test/scanner/test_all.rb +8 -2
  66. data/test/scanner/test_conditionals.rb +166 -0
  67. data/test/scanner/test_escapes.rb +8 -5
  68. data/test/scanner/test_free_space.rb +133 -0
  69. data/test/scanner/test_groups.rb +28 -0
  70. data/test/scanner/test_keep.rb +33 -0
  71. data/test/scanner/test_properties.rb +4 -0
  72. data/test/scanner/test_scripts.rb +71 -1
  73. data/test/syntax/ruby/test_1.9.3.rb +2 -2
  74. data/test/syntax/ruby/test_2.0.0.rb +38 -0
  75. data/test/syntax/ruby/test_2.2.0.rb +38 -0
  76. data/test/syntax/ruby/test_all.rb +1 -8
  77. data/test/syntax/ruby/test_files.rb +104 -0
  78. data/test/test_all.rb +2 -1
  79. data/test/token/test_all.rb +2 -0
  80. data/test/token/test_token.rb +109 -0
  81. metadata +75 -21
  82. data/VERSION.yml +0 -5
  83. data/lib/regexp_parser/ctype.rb +0 -48
  84. data/test/syntax/ruby/test_2.x.rb +0 -46
@@ -0,0 +1,38 @@
1
+ require File.expand_path("../../../helpers", __FILE__)
2
+
3
+ class TestSyntaxRuby_V220 < Test::Unit::TestCase
4
+ include Regexp::Syntax::Token
5
+
6
+ def setup
7
+ @syntax = Regexp::Syntax.new 'ruby/2.2.0'
8
+ end
9
+
10
+ tests = {
11
+ :implements => {
12
+ :property => [
13
+ UnicodeProperty::Script_7_0 + UnicodeProperty::Age_V220
14
+ ].flatten,
15
+
16
+ :nonproperty => [
17
+ UnicodeProperty::Script_7_0 + UnicodeProperty::Age_V220
18
+ ].flatten,
19
+ },
20
+
21
+ :excludes => {
22
+ },
23
+ }
24
+
25
+ tests.each do |method, types|
26
+ types.each do |type, tokens|
27
+ tokens.each do |token|
28
+ define_method "test_syntax_ruby_v220_#{method}_#{type}_#{token}" do
29
+ assert_equal(
30
+ method == :excludes ? false : true,
31
+ @syntax.implements?(type, token)
32
+ )
33
+ end
34
+ end
35
+ end
36
+ end
37
+
38
+ end
@@ -1,12 +1,5 @@
1
1
  require File.expand_path("../../../helpers", __FILE__)
2
2
 
3
- %w{1.8 1.9.1 1.9.3 2.x}.each do|tc|
3
+ %w{files 1.8 1.9.1 1.9.3 2.0.0 2.2.0}.each do|tc|
4
4
  require File.expand_path("../test_#{tc}", __FILE__)
5
5
  end
6
-
7
- class TestSyntaxRuby < Test::Unit::TestCase
8
-
9
- def test_lexer_ruby_syntax
10
- end
11
-
12
- end
@@ -0,0 +1,104 @@
1
+ require File.expand_path("../../../helpers", __FILE__)
2
+
3
+ class TestSyntaxFiles < Test::Unit::TestCase
4
+
5
+ # 1.8 syntax files
6
+ def test_syntax_file_1_8_6
7
+ syntax = Regexp::Syntax.new 'ruby/1.8.6'
8
+
9
+ assert_equal( true, syntax.kind_of?(Regexp::Syntax::Ruby::V186) )
10
+ end
11
+
12
+ def test_syntax_file_1_8_7
13
+ syntax = Regexp::Syntax.new 'ruby/1.8.7'
14
+
15
+ assert_equal( true, syntax.kind_of?(Regexp::Syntax::Ruby::V187) )
16
+ end
17
+
18
+ def test_syntax_file_1_8_alias
19
+ syntax = Regexp::Syntax.new 'ruby/1.8'
20
+
21
+ assert_equal( true, syntax.kind_of?(Regexp::Syntax::Ruby::V187) )
22
+ end
23
+
24
+
25
+ # 1.9 syntax files
26
+ def test_syntax_file_1_9_1
27
+ syntax = Regexp::Syntax.new 'ruby/1.9.1'
28
+
29
+ assert_equal( true, syntax.kind_of?(Regexp::Syntax::Ruby::V191) )
30
+ end
31
+
32
+ def test_syntax_file_1_9_2
33
+ syntax = Regexp::Syntax.new 'ruby/1.9.2'
34
+
35
+ assert_equal( true, syntax.kind_of?(Regexp::Syntax::Ruby::V192) )
36
+ end
37
+
38
+ def test_syntax_file_1_9_3
39
+ syntax = Regexp::Syntax.new 'ruby/1.9.3'
40
+
41
+ assert_equal( true, syntax.kind_of?(Regexp::Syntax::Ruby::V193) )
42
+ end
43
+
44
+ def test_syntax_file_1_9_alias
45
+ syntax = Regexp::Syntax.new 'ruby/1.9'
46
+
47
+ assert_equal( true, syntax.kind_of?(Regexp::Syntax::Ruby::V193) )
48
+ end
49
+
50
+
51
+ # 2.0 syntax files
52
+ def test_syntax_file_2_0_0
53
+ syntax = Regexp::Syntax.new 'ruby/2.0.0'
54
+
55
+ assert_equal( true, syntax.kind_of?(Regexp::Syntax::Ruby::V19) )
56
+ end
57
+
58
+ def test_syntax_file_2_0_alias
59
+ syntax = Regexp::Syntax.new 'ruby/2.0'
60
+
61
+ assert_equal( true, syntax.kind_of?(Regexp::Syntax::Ruby::V200) )
62
+ end
63
+
64
+
65
+ # 2.1 syntax files
66
+ def test_syntax_file_2_1_0
67
+ syntax = Regexp::Syntax.new 'ruby/2.1.0'
68
+
69
+ assert_equal( true, syntax.kind_of?(Regexp::Syntax::Ruby::V20) )
70
+ end
71
+
72
+ def test_syntax_file_2_1_2
73
+ syntax = Regexp::Syntax.new 'ruby/2.1.2'
74
+
75
+ assert_equal( true, syntax.kind_of?(Regexp::Syntax::Ruby::V210) )
76
+ end
77
+
78
+ def test_syntax_file_2_1_3
79
+ syntax = Regexp::Syntax.new 'ruby/2.1.3'
80
+
81
+ assert_equal( true, syntax.kind_of?(Regexp::Syntax::Ruby::V212) )
82
+ end
83
+
84
+ def test_syntax_file_2_1_alias
85
+ syntax = Regexp::Syntax.new 'ruby/2.1'
86
+
87
+ assert_equal( true, syntax.kind_of?(Regexp::Syntax::Ruby::V213) )
88
+ end
89
+
90
+
91
+ # 2.2 syntax files
92
+ def test_syntax_file_2_2_0
93
+ syntax = Regexp::Syntax.new 'ruby/2.2.0'
94
+
95
+ assert_equal( true, syntax.kind_of?(Regexp::Syntax::Ruby::V21) )
96
+ end
97
+
98
+ def test_syntax_file_2_2_alias
99
+ syntax = Regexp::Syntax.new 'ruby/2.2'
100
+
101
+ assert_equal( true, syntax.kind_of?(Regexp::Syntax::Ruby::V220) )
102
+ end
103
+
104
+ end
data/test/test_all.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require File.expand_path("../helpers", __FILE__)
2
- %w{ scanner syntax lexer parser expression }.each do |subject|
2
+
3
+ %w{ scanner syntax token lexer parser expression }.each do |subject|
3
4
  require File.expand_path("../#{subject}/test_all", __FILE__)
4
5
  end
@@ -0,0 +1,2 @@
1
+ require File.expand_path("../../helpers", __FILE__)
2
+ require File.expand_path("../test_token", __FILE__)
@@ -0,0 +1,109 @@
1
+ require File.expand_path("../../helpers", __FILE__)
2
+
3
+ class Token < Test::Unit::TestCase
4
+
5
+ def test_token_offset
6
+ regexp = /ab?cd/
7
+ tokens = RL.lex(regexp)
8
+
9
+ assert_equal( 'b', tokens[1].text )
10
+ assert_equal( [1, 2], tokens[1].offset )
11
+
12
+ assert_equal( '?', tokens[2].text )
13
+ assert_equal( [2, 3], tokens[2].offset )
14
+
15
+ assert_equal( 'cd', tokens[3].text )
16
+ assert_equal( [3, 5], tokens[3].offset )
17
+ end
18
+
19
+ def test_token_length
20
+ regexp = /abc?def/
21
+ tokens = RL.lex(regexp)
22
+
23
+ assert_equal( 'ab', tokens[0].text )
24
+ assert_equal( 2, tokens[0].length )
25
+
26
+ assert_equal( 'c', tokens[1].text )
27
+ assert_equal( 1, tokens[1].length )
28
+
29
+ assert_equal( '?', tokens[2].text )
30
+ assert_equal( 1, tokens[2].length )
31
+
32
+ assert_equal( 'def', tokens[3].text )
33
+ assert_equal( 3, tokens[3].length )
34
+ end
35
+
36
+ def test_token_to_h
37
+ regexp = /abc?def/
38
+ tokens = RL.lex(regexp)
39
+
40
+ assert_equal( 'ab', tokens[0].text )
41
+ assert_equal({
42
+ :type => :literal,
43
+ :token => :literal,
44
+ :text => 'ab',
45
+ :ts => 0,
46
+ :te => 2,
47
+ :level => 0,
48
+ :set_level => 0,
49
+ :conditional_level => 0
50
+ },
51
+ tokens[0].to_h
52
+ )
53
+
54
+ assert_equal( '?', tokens[2].text )
55
+ assert_equal({
56
+ :type => :quantifier,
57
+ :token => :zero_or_one,
58
+ :text => '?',
59
+ :ts => 3,
60
+ :te => 4,
61
+ :level => 0,
62
+ :set_level => 0,
63
+ :conditional_level => 0
64
+ },
65
+ tokens[2].to_h
66
+ )
67
+ end
68
+
69
+ def test_token_next
70
+ regexp = /a+b?c*d{2,3}/
71
+ tokens = RL.lex(regexp)
72
+
73
+ a = tokens.first
74
+ assert_equal( 'a', a.text )
75
+
76
+ plus = a.next
77
+ assert_equal( '+', plus.text )
78
+
79
+ b = plus.next
80
+ assert_equal( 'b', b.text )
81
+
82
+ interval = tokens.last
83
+ assert_equal( '{2,3}', interval.text )
84
+
85
+ assert_equal( nil, interval.next )
86
+ end
87
+
88
+ def test_token_previous
89
+ regexp = /a+b?c*d{2,3}/
90
+ tokens = RL.lex(regexp)
91
+
92
+ interval = tokens.last
93
+ assert_equal( '{2,3}', interval.text )
94
+
95
+ d = interval.previous
96
+ assert_equal( 'd', d.text )
97
+
98
+ star = d.previous
99
+ assert_equal( '*', star.text )
100
+
101
+ c = star.previous
102
+ assert_equal( 'c', c.text )
103
+
104
+ a = tokens.first
105
+ assert_equal( 'a', a.text )
106
+ assert_equal( nil, a.previous )
107
+ end
108
+
109
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: regexp_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ammar Ali
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-06 00:00:00.000000000 Z
11
+ date: 2015-01-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A library for tokenizing, lexing, and parsing Ruby regular expressions.
14
14
  email:
@@ -17,23 +17,38 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
- - lib/regexp_parser/ctype.rb
20
+ - ChangeLog
21
+ - Gemfile
22
+ - LICENSE
23
+ - README.md
24
+ - Rakefile
25
+ - lib/regexp_parser.rb
26
+ - lib/regexp_parser/expression.rb
21
27
  - lib/regexp_parser/expression/classes/alternation.rb
22
28
  - lib/regexp_parser/expression/classes/anchor.rb
23
29
  - lib/regexp_parser/expression/classes/backref.rb
30
+ - lib/regexp_parser/expression/classes/conditional.rb
24
31
  - lib/regexp_parser/expression/classes/escape.rb
32
+ - lib/regexp_parser/expression/classes/free_space.rb
25
33
  - lib/regexp_parser/expression/classes/group.rb
34
+ - lib/regexp_parser/expression/classes/keep.rb
26
35
  - lib/regexp_parser/expression/classes/literal.rb
27
36
  - lib/regexp_parser/expression/classes/property.rb
28
37
  - lib/regexp_parser/expression/classes/root.rb
29
38
  - lib/regexp_parser/expression/classes/set.rb
30
39
  - lib/regexp_parser/expression/classes/type.rb
40
+ - lib/regexp_parser/expression/methods/strfregexp.rb
41
+ - lib/regexp_parser/expression/methods/tests.rb
42
+ - lib/regexp_parser/expression/methods/traverse.rb
31
43
  - lib/regexp_parser/expression/quantifier.rb
44
+ - lib/regexp_parser/expression/sequence.rb
32
45
  - lib/regexp_parser/expression/subexpression.rb
33
- - lib/regexp_parser/expression.rb
34
46
  - lib/regexp_parser/lexer.rb
35
47
  - lib/regexp_parser/parser.rb
36
48
  - lib/regexp_parser/scanner.rb
49
+ - lib/regexp_parser/scanner/property.rl
50
+ - lib/regexp_parser/scanner/scanner.rl
51
+ - lib/regexp_parser/syntax.rb
37
52
  - lib/regexp_parser/syntax/ruby/1.8.6.rb
38
53
  - lib/regexp_parser/syntax/ruby/1.8.7.rb
39
54
  - lib/regexp_parser/syntax/ruby/1.8.rb
@@ -46,45 +61,67 @@ files:
46
61
  - lib/regexp_parser/syntax/ruby/2.1.0.rb
47
62
  - lib/regexp_parser/syntax/ruby/2.1.2.rb
48
63
  - lib/regexp_parser/syntax/ruby/2.1.3.rb
64
+ - lib/regexp_parser/syntax/ruby/2.1.4.rb
65
+ - lib/regexp_parser/syntax/ruby/2.1.5.rb
49
66
  - lib/regexp_parser/syntax/ruby/2.1.rb
67
+ - lib/regexp_parser/syntax/ruby/2.2.0.rb
68
+ - lib/regexp_parser/syntax/ruby/2.2.rb
69
+ - lib/regexp_parser/syntax/tokens.rb
50
70
  - lib/regexp_parser/syntax/tokens/anchor.rb
51
71
  - lib/regexp_parser/syntax/tokens/assertion.rb
52
72
  - lib/regexp_parser/syntax/tokens/backref.rb
53
73
  - lib/regexp_parser/syntax/tokens/character_set.rb
54
74
  - lib/regexp_parser/syntax/tokens/character_type.rb
75
+ - lib/regexp_parser/syntax/tokens/conditional.rb
55
76
  - lib/regexp_parser/syntax/tokens/escape.rb
56
77
  - lib/regexp_parser/syntax/tokens/group.rb
78
+ - lib/regexp_parser/syntax/tokens/keep.rb
57
79
  - lib/regexp_parser/syntax/tokens/meta.rb
58
80
  - lib/regexp_parser/syntax/tokens/quantifier.rb
59
81
  - lib/regexp_parser/syntax/tokens/unicode_property.rb
60
- - lib/regexp_parser/syntax/tokens.rb
61
- - lib/regexp_parser/syntax.rb
62
82
  - lib/regexp_parser/token.rb
63
- - lib/regexp_parser.rb
83
+ - lib/regexp_parser/version.rb
84
+ - regexp_parser.gemspec
64
85
  - test/expression/test_all.rb
65
86
  - test/expression/test_base.rb
66
87
  - test/expression/test_clone.rb
88
+ - test/expression/test_conditionals.rb
89
+ - test/expression/test_free_space.rb
90
+ - test/expression/test_set.rb
91
+ - test/expression/test_strfregexp.rb
92
+ - test/expression/test_subexpression.rb
93
+ - test/expression/test_tests.rb
94
+ - test/expression/test_to_h.rb
67
95
  - test/expression/test_to_s.rb
96
+ - test/expression/test_traverse.rb
68
97
  - test/helpers.rb
69
98
  - test/lexer/test_all.rb
99
+ - test/lexer/test_conditionals.rb
100
+ - test/lexer/test_keep.rb
70
101
  - test/lexer/test_literals.rb
71
102
  - test/lexer/test_nesting.rb
72
103
  - test/lexer/test_refcalls.rb
73
104
  - test/parser/test_all.rb
74
105
  - test/parser/test_alternation.rb
75
106
  - test/parser/test_anchors.rb
107
+ - test/parser/test_conditionals.rb
76
108
  - test/parser/test_errors.rb
77
109
  - test/parser/test_escapes.rb
110
+ - test/parser/test_free_space.rb
78
111
  - test/parser/test_groups.rb
112
+ - test/parser/test_keep.rb
79
113
  - test/parser/test_properties.rb
80
114
  - test/parser/test_quantifiers.rb
81
115
  - test/parser/test_refcalls.rb
82
116
  - test/parser/test_sets.rb
83
117
  - test/scanner/test_all.rb
84
118
  - test/scanner/test_anchors.rb
119
+ - test/scanner/test_conditionals.rb
85
120
  - test/scanner/test_errors.rb
86
121
  - test/scanner/test_escapes.rb
122
+ - test/scanner/test_free_space.rb
87
123
  - test/scanner/test_groups.rb
124
+ - test/scanner/test_keep.rb
88
125
  - test/scanner/test_literals.rb
89
126
  - test/scanner/test_meta.rb
90
127
  - test/scanner/test_properties.rb
@@ -96,17 +133,14 @@ files:
96
133
  - test/syntax/ruby/test_1.8.rb
97
134
  - test/syntax/ruby/test_1.9.1.rb
98
135
  - test/syntax/ruby/test_1.9.3.rb
99
- - test/syntax/ruby/test_2.x.rb
136
+ - test/syntax/ruby/test_2.0.0.rb
137
+ - test/syntax/ruby/test_2.2.0.rb
100
138
  - test/syntax/ruby/test_all.rb
139
+ - test/syntax/ruby/test_files.rb
101
140
  - test/syntax/test_all.rb
102
141
  - test/test_all.rb
103
- - lib/regexp_parser/scanner/property.rl
104
- - lib/regexp_parser/scanner/scanner.rl
105
- - VERSION.yml
106
- - Rakefile
107
- - LICENSE
108
- - README.md
109
- - ChangeLog
142
+ - test/token/test_all.rb
143
+ - test/token/test_token.rb
110
144
  homepage: http://github.com/ammar/regexp_parser
111
145
  licenses:
112
146
  - MIT
@@ -114,23 +148,23 @@ metadata:
114
148
  issue_tracker: https://github.com/ammar/regexp_parser/issues
115
149
  post_install_message:
116
150
  rdoc_options:
117
- - --inline-source
118
- - --charset=UTF-8
151
+ - "--inline-source"
152
+ - "--charset=UTF-8"
119
153
  require_paths:
120
154
  - lib
121
155
  required_ruby_version: !ruby/object:Gem::Requirement
122
156
  requirements:
123
- - - '>='
157
+ - - ">="
124
158
  - !ruby/object:Gem::Version
125
159
  version: 1.8.7
126
160
  required_rubygems_version: !ruby/object:Gem::Requirement
127
161
  requirements:
128
- - - '>='
162
+ - - ">="
129
163
  - !ruby/object:Gem::Version
130
164
  version: '0'
131
165
  requirements: []
132
166
  rubyforge_project:
133
- rubygems_version: 2.0.6
167
+ rubygems_version: 2.4.4
134
168
  signing_key:
135
169
  specification_version: 4
136
170
  summary: Scanner, lexer, parser for ruby's regular expressions
@@ -138,27 +172,43 @@ test_files:
138
172
  - test/expression/test_all.rb
139
173
  - test/expression/test_base.rb
140
174
  - test/expression/test_clone.rb
175
+ - test/expression/test_conditionals.rb
176
+ - test/expression/test_free_space.rb
177
+ - test/expression/test_set.rb
178
+ - test/expression/test_strfregexp.rb
179
+ - test/expression/test_subexpression.rb
180
+ - test/expression/test_tests.rb
181
+ - test/expression/test_to_h.rb
141
182
  - test/expression/test_to_s.rb
183
+ - test/expression/test_traverse.rb
142
184
  - test/helpers.rb
143
185
  - test/lexer/test_all.rb
186
+ - test/lexer/test_conditionals.rb
187
+ - test/lexer/test_keep.rb
144
188
  - test/lexer/test_literals.rb
145
189
  - test/lexer/test_nesting.rb
146
190
  - test/lexer/test_refcalls.rb
147
191
  - test/parser/test_all.rb
148
192
  - test/parser/test_alternation.rb
149
193
  - test/parser/test_anchors.rb
194
+ - test/parser/test_conditionals.rb
150
195
  - test/parser/test_errors.rb
151
196
  - test/parser/test_escapes.rb
197
+ - test/parser/test_free_space.rb
152
198
  - test/parser/test_groups.rb
199
+ - test/parser/test_keep.rb
153
200
  - test/parser/test_properties.rb
154
201
  - test/parser/test_quantifiers.rb
155
202
  - test/parser/test_refcalls.rb
156
203
  - test/parser/test_sets.rb
157
204
  - test/scanner/test_all.rb
158
205
  - test/scanner/test_anchors.rb
206
+ - test/scanner/test_conditionals.rb
159
207
  - test/scanner/test_errors.rb
160
208
  - test/scanner/test_escapes.rb
209
+ - test/scanner/test_free_space.rb
161
210
  - test/scanner/test_groups.rb
211
+ - test/scanner/test_keep.rb
162
212
  - test/scanner/test_literals.rb
163
213
  - test/scanner/test_meta.rb
164
214
  - test/scanner/test_properties.rb
@@ -170,7 +220,11 @@ test_files:
170
220
  - test/syntax/ruby/test_1.8.rb
171
221
  - test/syntax/ruby/test_1.9.1.rb
172
222
  - test/syntax/ruby/test_1.9.3.rb
173
- - test/syntax/ruby/test_2.x.rb
223
+ - test/syntax/ruby/test_2.0.0.rb
224
+ - test/syntax/ruby/test_2.2.0.rb
174
225
  - test/syntax/ruby/test_all.rb
226
+ - test/syntax/ruby/test_files.rb
175
227
  - test/syntax/test_all.rb
176
228
  - test/test_all.rb
229
+ - test/token/test_all.rb
230
+ - test/token/test_token.rb