ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: nagachika00@gmail.com
To: ruby-core@ruby-lang.org
Subject: [ruby-core:72441] [Ruby trunk - Bug #11812] Lack of space between colon and % literal causes syntax error
Date: Tue, 22 Dec 2015 20:59:56 +0000	[thread overview]
Message-ID: <redmine.journal-55736.20151222205955.c79cbe6b48d968ee@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-11812.20151212182420@ruby-lang.org

Issue #11812 has been updated by Tomoyuki Chikanaga.

Backport changed from 2.1: DONTNEED, 2.2: REQUIRED to 2.1: DONTNEED, 2.2: DONE

Backported into `ruby_2_2` branch at r53257.

----------------------------------------
Bug #11812: Lack of space between colon and % literal causes syntax error
https://bugs.ruby-lang.org/issues/11812#change-55736

* Author: Frederick Cheung
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.3.0preview2 (2015-12-11 trunk 53028) [x86_64-darwin15]
* Backport: 2.1: DONTNEED, 2.2: DONE
----------------------------------------
The following snippet 

~~~
{tags:%w(a)}
~~~

executes fine in ruby 2.2.3, but raises "syntax error, unexpected '%" when run under ruby 2.3.0preview2. When it is changed to

~~~
{tags: %w(a)}
~~~

Then it parses with ruby 2.3.0preview2 too.



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

      parent reply	other threads:[~2015-12-22 20:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <redmine.issue-11812.20151212182420@ruby-lang.org>
2015-12-12 18:24 ` [ruby-core:72084] [Ruby trunk - Bug #11812] [Open] Lack of space between colon and % literal causes syntax error frederick.cheung
2015-12-13  8:46 ` [ruby-core:72095] [Ruby trunk - Bug #11812] " yugui
2015-12-17 18:21 ` [ruby-core:72222] " nagachika00
2015-12-18  4:51 ` [ruby-core:72355] " usa
2015-12-22 20:59 ` nagachika00 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-55736.20151222205955.c79cbe6b48d968ee@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).