Actions
Bug #11812
closedLack of space between colon and % literal causes syntax error
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0preview2 (2015-12-11 trunk 53028) [x86_64-darwin15]
Backport:
Description
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.
Updated by yugui (Yuki Sonoda) about 9 years ago
r51617 is the cause according to bisect.
Updated by yugui (Yuki Sonoda) about 9 years ago
- Status changed from Open to Closed
Applied in changeset r53092.
- parse.y (parse_percent): Allow %-literals in labeled arg as
r51624 did for parentheses.
Fixes [ruby-core:72084] [Bug #11812].
Updated by yui-knk (Kaneko Yuichiro) about 9 years ago
- Related to Bug #11833: 2.2.4 syntax error when naked percent notation touches keyword arguments added
Updated by nagachika (Tomoyuki Chikanaga) about 9 years ago
- Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: REQUIRED
Updated by usa (Usaku NAKAMURA) about 9 years ago
- Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: REQUIRED to 2.1: DONTNEED, 2.2: REQUIRED
Updated by nagachika (Tomoyuki Chikanaga) almost 9 years ago
- Backport changed from 2.1: DONTNEED, 2.2: REQUIRED to 2.1: DONTNEED, 2.2: DONE
Backported into ruby_2_2
branch at r53257.
Updated by nobu (Nobuyoshi Nakada) almost 9 years ago
- Has duplicate Bug #11914: 2.2.4: Parsing "symbol:%w(word)" gives SyntaxError added
Updated by nobu (Nobuyoshi Nakada) almost 9 years ago
- Has duplicate Bug #12200: MRI 2.2.4 parser forces blanks for hash keys which point to an array literal added
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0Like0