parser 2.1.9 → 2.2.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68f0da012b21e553f2913ebbe2fc6eddbe3f793d
4
- data.tar.gz: 4ee309d5c0bcb1639c6c6f7658bba9cbd24c108d
3
+ metadata.gz: 10f455448f51aa606feb4fbf08c4a2373003bc5a
4
+ data.tar.gz: 8756b85cb0e44b5be39ae8349af7527ab9d0a847
5
5
  SHA512:
6
- metadata.gz: 5f488e04b3aa578138644483988c152cf3673db5f674d743af742033658771fe30b287815fc59db446ddc877e3d73623914951511d47b9c2abcc1074d948597f
7
- data.tar.gz: b111733fdd9fd743f0e9f1a7d84e8f57f94b8faebe4464659c3ae94a9073c31769eff7d633f82450c011160ebe493cc3ab231f524e718372eeead6e19672772a
6
+ metadata.gz: d7a423e524b8a330ccd8c9df8fe3056b9853259703c4a1cd4f9af987954cb6ef7298a76ba73cb899e84f92fb3fa0ad59464aef8a8e27791fe489df18bf5abbfc
7
+ data.tar.gz: 0a1eaf698cc9977a104269d9d69786e2fb01ff08e735b3851cc4aad5cbb15fc0ef10f3675efefdea06f1d9a487f88d2608f303ef6f72b828352fcfd5e7ec7a6a
data/.gitignore CHANGED
@@ -21,3 +21,4 @@ lib/parser/ruby18.rb
21
21
  lib/parser/ruby19.rb
22
22
  lib/parser/ruby20.rb
23
23
  lib/parser/ruby21.rb
24
+ lib/parser/ruby22.rb
@@ -4,9 +4,14 @@ rvm:
4
4
  - 1.9.2
5
5
  - 1.9.3
6
6
  - 2.0.0
7
+ - 2.1
8
+ - ruby-head
7
9
  - jruby-18mode
8
10
  - jruby-19mode
9
- - rbx
11
+ - rbx-2
12
+ matrix:
13
+ allow_failures:
14
+ - rvm: ruby-head
10
15
  before_install:
11
16
  - gem update bundler
12
17
  - bundle --version
@@ -1,3 +1,474 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ v2.2.0.pre.1 (2014-06-12)
5
+ -------------------------
6
+
7
+ Features implemented:
8
+ * Add Source::Rewriter#transaction for atomic rewrite actions (Yuji Nakayama)
9
+ * Raise Parser::ClobberingError for clobbering rewrite error (Yuji Nakayama)
10
+
11
+ Bugs fixed:
12
+ * parser/current: fix the fallback case (refs #146). (Peter Zotov)
13
+ * ruby22.y: "tap (proc do end)": allow parenthesed do-block in cmdarg. (Peter Zotov)
14
+
15
+ v2.1.9 (2014-04-21)
16
+ -------------------
17
+
18
+ API modifications:
19
+ * Extend ast dependency to >= 1.1 \< 3.0. (Peter Zotov)
20
+ * parser/current: fallback to latest released Ruby instead of raising (fixes #140). (Peter Zotov)
21
+
22
+ Features implemented:
23
+ * ruby-rewrite: add a --modify switch for rewriters that modify AST (fixes #143). (Peter Zotov)
24
+
25
+ Bugs fixed:
26
+ * lexer.rl: don't fail to parse string literals in huge files (fixes #142). (Peter Zotov)
27
+
28
+ v2.1.7 (2014-03-05)
29
+ -------------------
30
+
31
+ Bugs fixed:
32
+ * lexer.rl: make sure all invalid escapes lead to fatal errors (fixes #136). (Peter Zotov)
33
+
34
+ v2.1.6 (2014-03-04)
35
+ -------------------
36
+
37
+ Features implemented:
38
+ * Add the list of all node types within Parser::Meta. (Markus Schirp)
39
+
40
+ v2.1.5 (2014-02-24)
41
+ -------------------
42
+
43
+ Bugs fixed:
44
+ * Parser::Base, ruby18.y: don't try to lookup Encoding on 1.8 (fixes #133). (Peter Zotov)
45
+
46
+ v2.1.4 (2014-01-11)
47
+ -------------------
48
+
49
+ Features implemented:
50
+ * ruby22.y: "x def y; z do end end": save cmdarg stack to isolate command argument state from outer scope. (Peter Zotov)
51
+ * Add Ruby 2.2 syntax. (Peter Zotov)
52
+
53
+ Bugs fixed:
54
+ * Builders::Default: "super do end": super and zsuper are like send (fixes #131). (Peter Zotov)
55
+
56
+ v2.1.3 (2014-01-10)
57
+ -------------------
58
+
59
+ Bugs fixed:
60
+ * lexer.rl: "/\//": don't include escaped delimiter in AST in its escaped form (fixes #125). (Peter Zotov)
61
+ * Builders::Default: "return x y do end": correctly build AST for keywords followed by command (closes #129). (Peter Zotov)
62
+ * Fix a bug where "ambiguous first argument" diagnostic was not emitted (Yuji Nakayama)
63
+ * Source::Comment::Associator: don't die while associating with "__ENCODING__". (Peter Zotov)
64
+ * ruby-parse: don't die when invoked with -L -e "__ENCODING__". (Peter Zotov)
65
+ * Add missing source map for match-current-line (Yuji Nakayama)
66
+
67
+ v2.1.2 (2014-01-05)
68
+ -------------------
69
+
70
+ Bugs fixed:
71
+ * lexer.rl: in "foo!= x", foo is tIDENTIFIER, not tFID (closes #126). (Peter Zotov)
72
+
73
+ v2.1.1 (2013-12-25)
74
+ -------------------
75
+
76
+ API modifications:
77
+ * ruby21.y: Ruby 2.1 is released already. (Peter Zotov)
78
+
79
+ v2.1.0 (2013-12-25)
80
+ -------------------
81
+
82
+ API modifications:
83
+ * Parser::Diagnostic: expose reason symbolically (closes #115, #116). (Ian MacLeod)
84
+ * lexer.rl: coerce literals to UTF-8 in ASCII-encoded files if they contain \uXXXX (Peter Zotov)
85
+
86
+ Bugs fixed:
87
+ * builders/default: represent heredocs with dedicated map (fixes #100). (Peter Zotov)
88
+
89
+ v2.1.0.pre1 (2013-11-12)
90
+ ------------------------
91
+
92
+ API modifications:
93
+ * lexer.rl: correctly handle __END__ with non-whitespace after it (Peter Zotov)
94
+ * lexer.rl: handle \r in middle of a line as mere whitespace (Peter Zotov)
95
+ * ruby{18,19,20,21}.y, builders/default: precisely point to tUMINUS_NUM. (Peter Zotov)
96
+
97
+ Features implemented:
98
+ * lexer.rl, ruby21.y, builders/default: rational/complex literals. (Peter Zotov)
99
+
100
+ v2.0.0 (2013-10-06)
101
+ -------------------
102
+
103
+ API modifications:
104
+ * Source::Rewriter: raise an exception if updates clobber each other. (Peter Zotov)
105
+ * Source::Range#inspect: use full class name. (Peter Zotov)
106
+ * lexer.rl: make EOF tokens actually pointing at EOF and zero-length. (Peter Zotov)
107
+ * Source::Range#column_range: raise RangeError if range spans >1 line. (Peter Zotov)
108
+ * Source::Comment::Associator: fix argument order. (Peter Zotov)
109
+
110
+ Features implemented:
111
+ * Source::Comment: implement #inspect. (Peter Zotov)
112
+ * Backport Array#bsearch from Ruby 2.0. (Peter Zotov)
113
+
114
+ v2.0.0.pre8 (2013-09-15)
115
+ ------------------------
116
+
117
+ API modifications:
118
+ * lexer.rl: make lexing faster and improve parsing speed by ~60%. (Peter Zotov)
119
+
120
+ v2.0.0.pre7 (2013-09-10)
121
+ ------------------------
122
+
123
+ Features implemented:
124
+ * Parser::Base: add #parse_with_comments, #parse_file_with_comments. (Trent Ogren)
125
+ * lexer.rl (Ruby 2.1): "1end": lex non-exponent `e' separate from number. (Peter Zotov)
126
+
127
+ Bugs fixed:
128
+ * lexer.rl: "->*{}": tLAMBEG at expr_beg (fixes #103). (Peter Zotov)
129
+ * Source::Rewriter: apply actions in the insertion order. (Josh Cheek)
130
+
131
+ v2.0.0.pre5 (2013-07-31)
132
+ ------------------------
133
+
134
+ Bugs fixed:
135
+ * Remove a forgotten require. (Peter Zotov)
136
+
137
+ v2.0.0.pre4 (2013-07-31)
138
+ ------------------------
139
+
140
+ API modifications:
141
+ * source/comment: make #loc/#location return Source::Map for consistency (fixes #96). (Peter Zotov)
142
+
143
+ Features implemented:
144
+ * source/comment/associator: skip shebang and encoding line by default (fixes #95). (Peter Zotov)
145
+
146
+ Bugs fixed:
147
+ * ruby{19,20,21}.y, lexer.rl, builders/default: correct begin for ?a (fixes #92). (Peter Zotov)
148
+ * ruby{18,19,20,21}.y, builders/default: don't add spurious begin/end for string parts (refs #92). (Peter Zotov)
149
+ * Activate `diagnostics.all_errors_are_fatal` on non-MRI Rubies as a workaround (closes #93). (Peter Zotov)
150
+
151
+ v2.0.0.pre3 (2013-07-26)
152
+ ------------------------
153
+
154
+ API modifications:
155
+ * lexer.rl: add simple explicit output encoding for strings. (Peter Zotov)
156
+
157
+ Features implemented:
158
+ * Source::Buffer: support for -(dos|unix|mac) and utf8-mac encodings. (Peter Zotov)
159
+ * Source::Range#resize. (Peter Zotov)
160
+ * Significantly improve speed for large (>100k) and very large (>1M) files. (Peter Zotov)
161
+
162
+ Bugs fixed:
163
+ * ruby21.y: fix typos. (Peter Zotov)
164
+ * builders/default: respect regexp encoding. (Peter Zotov)
165
+ * lexer.rl: literal EOF (\0, \x04, \x1a) inside literals and comments. (Peter Zotov)
166
+ * lexer.rl: "meth (lambda do end)" (1.8), "f x: -> do meth do end end": expr_cmdarg. (Peter Zotov)
167
+ * lexer.rl: "\<\<E\nE\r\r\n": extraneous CRs are ignored after heredoc delimiter. (Peter Zotov)
168
+ * lexer.rl: "%\nfoo\n": \n can be used as %-literal delimiter. (Peter Zotov)
169
+ * source/buffer, lexer.rl: convert CRLF to LF prior to lexing. (Peter Zotov)
170
+ * lexer.rl: "\<\<w; "\nfoo\nw\n"": interleaved heredoc and non-heredoc literals. (Peter Zotov)
171
+ * builders/default: 1.8 did not descend into &&/|| in conditional context. (Peter Zotov)
172
+ * lexer.rl: "1+a:a": respect context sensitivity in 1.8 label fallback. (Peter Zotov)
173
+ * lexer.rl: ruby 1.8 is context-sensitive wrt/ locals as well. (Peter Zotov)
174
+ * lexer.rl: "eof??a": expr_arg doesn't need space before character literal. (Peter Zotov)
175
+ * lexer.rl: interleaved heredoc and interpolated double-quoted string. (Peter Zotov)
176
+ * lexer.rl: "#{f:a}": interpolation starts expr_value, not expr_beg. (Peter Zotov)
177
+ * lexer.rl: "\cM" is "\r", not an error. (Peter Zotov)
178
+ * ruby{20,21}.y: constant op-assignment inside a def is not an error. (Peter Zotov)
179
+ * lexer.rl: "when Date:" fix label fallback for 1.8 mode. (Peter Zotov)
180
+ * ruby{19,20,21}.y: "->(scope){}; scope :foo": lambda identifier leakage. (Peter Zotov)
181
+ * lexer.rl: "eh ?\r\n": don't eat tEH if followed by CRLF. (Peter Zotov)
182
+ * lexer.rl: "f \<\<-TABLE\ndo |a,b|\nTABLE\nend": leave FSM after lexing heredoc. (Peter Zotov)
183
+ * lexer.rl: "foo %\n bar": don't % at expr_arg as tSTRING_BEG. (Peter Zotov)
184
+ * lexer.rl, lexer/literal: use lexer encoding for literal buffer. (Peter Zotov)
185
+ * lexer.rl: "\u{9}": one-digit braced unicode escapes. (Peter Zotov)
186
+ * Source::Buffer: don't chew \r from source lines. (Peter Zotov)
187
+ * builders/default: don't die in eh_keyword_map if else branch is empty. (Peter Zotov)
188
+ * lexer.rl: "0777_333": octal literals with internal underscores. (Peter Zotov)
189
+ * lexer.rl: "let [] {}": goto tLBRACE_ARG after any closing braces. (Peter Zotov)
190
+ * lexer.rl: "while not (1) do end": emit proper kDO* when in cond/cmdarg state. (Peter Zotov)
191
+ * lexer.rl: "rescue=>": correctly handle rescue+assoc at expr_beg. (Peter Zotov)
192
+ * lexer.rl: "puts 123do end": only trailing `_' and `e' in number are errors. (Peter Zotov)
193
+ * lexer.rl: "begin; rescue rescue1; end": accept barewords at expr_mid. (Peter Zotov)
194
+ * lexer.rl: "f.x!if 1": correct modifier handling in expr_arg. (Peter Zotov)
195
+ * lexer.rl: "=begin\n#=end\n=end": only recognize =end at bol. (Peter Zotov)
196
+ * builders/default: don't check for duplicate arguments in 1.8 mode. (Peter Zotov)
197
+ * Don't attempt to parse magic encoding comment in 1.8 mode. (Peter Zotov)
198
+ * lexer.rl: "\777": octal literals overflow. (Peter Zotov)
199
+ * lexer.rl: "foo;\n__END__", "\na:b": whitespace in expr_value. (Peter Zotov)
200
+ * lexer.rl: "\xE2\x80\x99": concatenation of byte escape sequences. (Peter Zotov)
201
+ * lexer.rl: "E10", "E4U": don't conflate floats and identifiers. (Peter Zotov)
202
+ * lexer.rl: "foo.bar= {1=>2}": return fid, = as separate tokens in expr_dot. (Peter Zotov)
203
+ * lexer.rl: "def defined?": properly return defined? in expr_fname. (Peter Zotov)
204
+ * lexer.rl: "Rainbows! do end", "foo.S?": allow bareword fid in expr_beg/dot. (Peter Zotov)
205
+
206
+ v2.0.0.pre2 (2013-07-11)
207
+ ------------------------
208
+
209
+ Features implemented:
210
+ * Allow to differentiate between __FILE__/__LINE__ and literals (closes #89). (Peter Zotov)
211
+ * Add attribute `diagnostic' to Parser::SyntaxError (closes #88). (Peter Zotov)
212
+
213
+ Bugs fixed:
214
+ * Don't treat byte order mark as an identifier (closes #91). (Peter Zotov)
215
+
216
+ v2.0.0.beta10 (2013-07-02)
217
+ --------------------------
218
+
219
+ Bugs fixed:
220
+ * ruby-parse, ruby-rewrite: fix require of removed compatibility shim. (Peter Zotov)
221
+ * lexer.rl: "def !@; end" unary bang. (Peter Zotov)
222
+
223
+ v2.0.0.beta9 (2013-06-28)
224
+ -------------------------
225
+
226
+ API modifications:
227
+ * ruby{18,19,20,21}.y: removed obsolete warnings and linting. (Peter Zotov)
228
+
229
+ Features implemented:
230
+ * builders/default: add keyword source range for BEGIN/END (fixes #85). (Peter Zotov)
231
+
232
+ Bugs fixed:
233
+ * lexer.rl: "t=1;(a)?t:T" context sensitivity in expr_value (fixes #87). (Peter Zotov)
234
+ * lexer.rl: keywords as labels, e.g. "unless:" (fixes #83, #84). (Peter Zotov)
235
+ * lexer.rl: rectify usage of c_space/c_space_nl (fixes #81). (Peter Zotov)
236
+ * ruby{18,19,20,21}.y: fix warnings for class/module in method body. (Peter Zotov)
237
+ * lexer.rl: fix warning for ?\s. (Peter Zotov)
238
+ * lexer.rl: expr_fname emits expr_beg-like keywords (fixes #82). (Peter Zotov)
239
+ * lexer.rl: get rid of harmful nondeterminism in w_space (fixes #80). (Peter Zotov)
240
+ * lexer/explanation: 1.8, 1.9 compatibility (fixes #76). (Peter Zotov)
241
+
242
+ v2.0.0.beta8 (2013-06-24)
243
+ -------------------------
244
+
245
+ Bugs fixed:
246
+ * ast/processor: add missing node handlers (Yuji Nakayama)
247
+ * ast/processor: rename some obsolete node handlers (Yuji Nakayama)
248
+
249
+ v2.0.0.beta7 (2013-06-22)
250
+ -------------------------
251
+
252
+ API modifications:
253
+ * Implement a much more sane encoding model (closes #60). (Peter Zotov)
254
+
255
+ Features implemented:
256
+ * builders/default: (while-post) and (until-post); (kwbegin) (fixes #70). (Peter Zotov)
257
+
258
+ Bugs fixed:
259
+ * builders/default: don't swallow (begin) in "if (foo); end" (fixes #75). (Peter Zotov)
260
+
261
+ v2.0.0.beta6 (2013-06-17)
262
+ -------------------------
263
+
264
+ API modifications:
265
+ * Get rid of "synthesized (nil)". If it's not in source, it's not in AST (fixes #71). (Peter Zotov)
266
+ * lexer.rl, ruby{18,19,20,21}.y: source maps for interpolation (fixes #27). (Peter Zotov)
267
+
268
+ Features implemented:
269
+ * ruby{18,19,20,21}.y, builders/default: lvar-injecting match (closes #69). (Peter Zotov)
270
+ * builders/default: implicit matches (refs #69). (Peter Zotov)
271
+ * builders/default: flip-flops (refs #69). (Peter Zotov)
272
+
273
+ Bugs fixed:
274
+ * lexer.rl: fix an off-by-1 error in heredoc parsing. (Peter Zotov)
275
+ * lexer.rl: don't fail on "alias $a $b\n# comment\nalias $c $d". (Peter Zotov)
276
+ * builders/default: fix treatment of masgn in &&/|| (refs #69). (Peter Zotov)
277
+ * ruby-parse: make -L command line option work again. (Peter Zotov)
278
+ * ruby{18,19,20,21}.y: begin source map for "if foo\nthen bar end" (fixes #68). (Peter Zotov)
279
+ * Source::Comment::Associator: gracefully terminate when out of comments (fixes #67). (Peter Zotov)
280
+
281
+ v2.0.0.beta5 (2013-06-08)
282
+ -------------------------
283
+
284
+ Bugs fixed:
285
+ * Source::Buffer: better magic encoding comment recognition (fixes #65). (Peter Zotov)
286
+ * lexer.rl: "{success?: true}" (fixes #66). (Peter Zotov)
287
+ * Source::Buffer: if in doubt, treat data as UTF-8 (closes #60). (Peter Zotov)
288
+
289
+ v2.0.0.beta4 (2013-06-05)
290
+ -------------------------
291
+
292
+ Bugs fixed:
293
+ * lexer.rl: fix heredoc parsing with CRLF line endings (closes #61). (Peter Zotov)
294
+ * lexer.rl: fix premature ending of heredoc "\<\<D\nABCDEF\nD" (fixes #59). (Peter Zotov)
295
+
296
+ v2.0.0.beta3 (2013-05-29)
297
+ -------------------------
298
+
299
+ Bugs fixed:
300
+ * AST::Processor: traverse "A, B = foo" (fixes #55). (Peter Zotov)
301
+ * lexer.rl: correctly handle CRLF line endings (fixes #56). (Peter Zotov)
302
+ * Fix traversing of "case; when a?; when b?; end" by AST::Processor. (Peter Zotov)
303
+ * Correctly lex "foo a, b # comment\nbar" (fixes #54). (Peter Zotov)
304
+
305
+ v2.0.0.beta2 (2013-05-27)
306
+ -------------------------
307
+
308
+ Bugs fixed:
309
+ * Actually return comments from Parser::Base#tokenize instead of nil. (Peter Zotov)
310
+
311
+ v2.0.0.beta1 (2013-05-25)
312
+ -------------------------
313
+
314
+ API modifications:
315
+ * Completely rewrite whitespace handling in lexer (fixes #36). (Peter Zotov)
316
+ * Rename Parser::AST::Node#source_map to #location, #src to #loc (closes #40). (Peter Zotov)
317
+ * Rename Parser::Source::Range#to_source to #source (refs #40). (Peter Zotov)
318
+ * Rename (cdecl) node to (casgn), remove (cvdecl) nodes (fixes #26). (Peter Zotov)
319
+
320
+ Features implemented:
321
+ * Add Source::Comment.associate for mapping comments back to nodes (fixes #31). (Peter Zotov)
322
+ * Return AST and comments from Parser::Base#parse_with_comments. (Peter Zotov)
323
+ * Return comments from Parser::Base#tokenize (fixes #46). (Peter Zotov)
324
+ * Add tokenizer, Parser::Base#tokenize (refs #46). (Peter Zotov)
325
+ * lexer.rl: better location reporting for invalid unicode codepoints (fixes #38). (Peter Zotov)
326
+ * lexer.rl: better location reporting for unterminated =begin (fixes #37). (Peter Zotov)
327
+ * Better location reporting for hashes with labels. (Peter Zotov)
328
+ * Add `dot' source map to (send) nodes (fixes #34). (Peter Zotov)
329
+ * Significantly improve performance of Source::Buffer (fixes #28). (Peter Zotov)
330
+
331
+ Bugs fixed:
332
+ * lexer.rl: fix lexing label at line_begin "foo:bar" (fixes #48). (Peter Zotov)
333
+ * lexer.rl: "Option /^I/" is a method call (fixes #32). (Peter Zotov)
334
+ * Don't allow destructive mutation of line cache in Source::Buffer. (Peter Zotov)
335
+ * Fix quantifier in magic encoding parser (refs #33). (Peter Zotov)
336
+ * Better handling of magic encoding comment edge cases (fixes #33). (Peter Zotov)
337
+
338
+ v1.3.2 (2013-05-13)
339
+ -------------------
340
+
341
+ Features implemented:
342
+ * lexer.rl: disallow "$-" (dollar, dash, no character) special. (Peter Zotov)
343
+
344
+ Bugs fixed:
345
+ * Source::Range: fix #to_source for multiline ranges. (Peter Zotov)
346
+ * builders/default: source map for class/module name (fixes #24). (Peter Zotov)
347
+
348
+ v1.3.1 (2013-05-09)
349
+ -------------------
350
+
351
+ Bugs fixed:
352
+ * ruby{19,20,21}.y: "def foo\n=begin\n=end\nend" (fixes #22). (Peter Zotov)
353
+ * lexer.rl: "rescue::Exception" (fixes #23). (Peter Zotov)
354
+
355
+ v1.3.0 (2013-04-26)
356
+ -------------------
357
+
358
+ Bugs fixed:
359
+ * lexer.rl: "alias foo bar \n alias bar baz". (Peter Zotov)
360
+
361
+ v1.2.0 (2013-04-25)
362
+ -------------------
363
+
364
+ Bugs fixed:
365
+ * lexer.rl: lex "def String.foo; end" correctly (fixes #16). (Peter Zotov)
366
+ * lexer.rl: reject "1end", "1.1end". (Peter Zotov)
367
+
368
+ v1.1.0 (2013-04-18)
369
+ -------------------
370
+
371
+ API modifications:
372
+ * ruby19.y, ruby20.y, ruby21.y: check for Encoding support (fixes #9). (Peter Zotov)
373
+
374
+ Features implemented:
375
+ * builders/default: ignore duplicate _ args (>=1.9), _.* args (>1.9) (fixes #5). (Peter Zotov)
376
+ * builders/default: detect duplicate argument names (refs #5). (Peter Zotov)
377
+ * lexer.rl: "def foo bar: 1; end" (for ruby 2.1) (fixes #15). (Peter Zotov)
378
+ * ruby21.y: required keyword arguments. (Peter Zotov)
379
+
380
+ Bugs fixed:
381
+ * ruby20.y, ruby21.y: "foo::A += 1" and friends (scoped constant op-asgn). (Peter Zotov)
382
+
383
+ v1.0.1 (2013-04-18)
384
+ -------------------
385
+
386
+ Bugs fixed:
387
+ * builders/default: %Q{#{1}} and friends (fixes #14). (Peter Zotov)
388
+
389
+ v1.0.0 (2013-04-17)
390
+ -------------------
391
+
392
+ Features implemented:
393
+ * ruby20.y: "meth 1 do end.fun(bar) {}" and friends. (Peter Zotov)
394
+ * ruby20.y: keyword arguments. (Peter Zotov)
395
+ * ruby20.y: { **kwsplat }. (Peter Zotov)
396
+
397
+ v0.9.2 (2013-04-16)
398
+ -------------------
399
+
400
+ Features implemented:
401
+ * lexer.rl: "-> (a) {}". (Peter Zotov)
402
+ * builders/default: treat &&/|| lhs/rhs as conditional context. (Peter Zotov)
403
+ * ruby20.y: "class Foo \< a:b; end". (Peter Zotov)
404
+ * lexer.rl: "class \<\< a:b". (Peter Zotov)
405
+ * ruby19.y, ruby20.y: "f { || a:b }". (Peter Zotov)
406
+ * ruby19.y, ruby20.y: "def foo() a:b end", "def foo\n a:b end". (Peter Zotov)
407
+ * lexer.rl: %i/%I. (Peter Zotov)
408
+ * lexer.rl: warn at "foo **bar". (Peter Zotov)
409
+ * lexer.rl: ** at expr_beg is tDSTAR. (Peter Zotov)
410
+ * ruby20.y: "f {|;\nvar\n|}". (Peter Zotov)
411
+ * ruby20.y: "p () {}". (Peter Zotov)
412
+ * ruby20.y: "p begin 1.times do 1 end end". (Peter Zotov)
413
+ * ruby20.y: better error message for BEGIN{} in a method body. (Peter Zotov)
414
+
415
+ Bugs fixed:
416
+ * lexer.rl, ruby18.y, ruby19.y, ruby20.y: "%W[#{a}#@b foo #{c}]". (Peter Zotov)
417
+ * lexer.rl: parse "foo=1; foo / bar #/" as method call on 1.8, division on 1.9. (Peter Zotov)
418
+ * ruby18.y, ruby19.y: BEGIN{} does not introduce a scope. (Peter Zotov)
419
+ * lexer.rl: improve whitespace handling. (Peter Zotov)
420
+
421
+ v0.9.0 (2013-04-15)
422
+ -------------------
423
+
424
+ API modifications:
425
+ * runtime compatibility with 1.8.7. (Peter Zotov)
426
+
427
+ Features implemented:
428
+ * builders/default: check for multiple assignment in conditions (fixes #4). (Peter Zotov)
429
+ * builders/default: check if actual block and blockarg are passed (fixes #6). (Peter Zotov)
430
+ * ruby19.y: "foo::A += m foo". (Peter Zotov)
431
+ * ruby18.y, ruby19.y: "rescue without else is useless" warning. (Peter Zotov)
432
+ * ruby19.y: 99.16% coverage, 100% sans error recovery. (Peter Zotov)
433
+ * ruby19.y: mlhs arguments "def foo((a, *, p)) end". (Peter Zotov)
434
+ * ruby19.y: "fun (1) {}" and friends. (Peter Zotov)
435
+ * ruby19.y: mlhs post variables "a, *b, c = ...". (Peter Zotov)
436
+ * builders/default: @@a |= 1; def f; @@a |= 1; end. (Peter Zotov)
437
+ * ruby18.y: fun (&foo). (Peter Zotov)
438
+ * ruby18.y: block formal arguments. 99.33% coverage. (Peter Zotov)
439
+ * ruby18.y: fun(meth 1 do end); fun(1, meth 1 do end). (Peter Zotov)
440
+ * ruby18.y: "meth 1 do end.fun(bar)" and friends. (Peter Zotov)
441
+ * ruby18.y: foo () {}; a.foo () {}; a::foo () {}. (Peter Zotov)
442
+ * ruby18.y: various call argument combinations. (Peter Zotov)
443
+ * ruby18.y: foo (1, 2); foo (). (Peter Zotov)
444
+ * ruby18.y: foo (1).to_i. (Peter Zotov)
445
+ * ruby18.y: fun{}; fun(){}; fun(1){}; fun do end. (Peter Zotov)
446
+ * ruby18.y: foo.fun bar. (Peter Zotov)
447
+ * lexer.rl, ruby18.y: add support for cond/cmdarg stack states. (Peter Zotov)
448
+ * ruby18.y: rescue. (Peter Zotov)
449
+ * ruby18.y: begin end while|until (tests only). (Peter Zotov)
450
+ * ruby18.y: case. (Peter Zotov)
451
+ * ruby18.y: foo[m bar]. (Peter Zotov)
452
+ * ruby18.y: for..in. (Peter Zotov)
453
+
454
+ Bugs fixed:
455
+ * lexer.rl: handle : at expr_beg as a symbol, at expr_end as tCOLON. (Peter Zotov)
456
+ * lexer.rl: handle "rescue #foo\nbar". (Peter Zotov)
457
+ * lexer.rl: handle "foo.#bar\nbaz". (Peter Zotov)
458
+ * lexer.rl: fix location info for symbols. (Peter Zotov)
459
+ * lexer.rl: handle \<backslash>\<nl> at expr_beg. (Peter Zotov)
460
+ * lexer.rl: emit tCONSTANT/tIDENTIFIER/tFID in expr_dot. (Peter Zotov)
461
+ * lexer.rl: correctly disambiguate "x ::Foo" as tIDENT, tCOLON3, ... (Peter Zotov)
462
+ * lexer.rl: correctly disambiguate ident!= as tIDENTIFIER, tNEQ. (Peter Zotov)
463
+ * lexer.rl: correctly report the %r%% tREGEXP_BEG value as %r%. (Peter Zotov)
464
+ * ruby19.y: emit correct error on "nil = 1" and friends. (Peter Zotov)
465
+ * ruby19.y: 1.9 permits empty symbol literals. (Peter Zotov)
466
+ * ruby18.y: foo(&bar). (Peter Zotov)
467
+ * lexer.rl: don't lookahead two tokens on "func %{str} do". (Peter Zotov)
468
+ * lexer.rl: fix lexing of non-interp heredoc with trailing backslash. (Peter Zotov)
469
+ * lexer.rl: fix erroneous number and =begin lookahead in expr_beg. (Peter Zotov)
470
+ * lexer.rl: fix stack corruption. (Peter Zotov)
471
+ * lexer.rl: /= at expr_beg. (Peter Zotov)
472
+ * lexer.rl: class\<\<self. (Peter Zotov)
473
+ * fix lexing comments at expr_beg "{#1\n}". (Peter Zotov)
474
+