Issue #4985 has been updated by tenderlovemaking (Aaron Patterson).

File 4985.patch added

I've attached an updated patch that includes the correct symbols, fixes the ripper tests, and fixes the conflicts.

Nakada-san: if you're happy with this patch, I can apply. :)
----------------------------------------
Feature #4985: Add %S[] support for making a list of symbols
https://bugs.ruby-lang.org/issues/4985#change-28360

Author: tenderlovemaking (Aaron Patterson)
Status: Assigned
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: 
Target version: 


I would like to add %S, which would create a list of symbols.

For example:

    %S[foo bar] # => [:foo, :bar]

I've attached a patch which implements this along with ripper events and tests.  Thanks to Josh Susser for thinking of this. :-)


-- 
http://bugs.ruby-lang.org/