Project

General

Profile

Actions

Bug #11812

closed

Lack of space between colon and % literal causes syntax error

Added by fcheung (Frederick Cheung) almost 9 years ago. Updated almost 9 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0preview2 (2015-12-11 trunk 53028) [x86_64-darwin15]
[ruby-core:72084]

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.


Related issues 3 (0 open3 closed)

Related to Ruby master - Bug #11833: 2.2.4 syntax error when naked percent notation touches keyword arguments ClosedActions
Has duplicate Ruby master - Bug #11914: 2.2.4: Parsing "symbol:%w(word)" gives SyntaxErrorClosedActions
Has duplicate Ruby master - Bug #12200: MRI 2.2.4 parser forces blanks for hash keys which point to an array literalClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0