[ruby-core:94264] [Ruby master Bug#16050] :@ is not parsed correctly
From:
daniel@...42.com
Date:
2019-08-11 02:44:13 UTC
List:
ruby-core #94264
Issue #16050 has been updated by Dan0042 (Daniel DeLorme). Ah, but `:@1` is not parsed either, even though it's now (unfortunately) valid as a numbered block parameter. Depending on how #15723 goes, `:@1` and/or `:@` should be parsed if they are valid identifiers. ---------------------------------------- Bug #16050: :@ is not parsed correctly https://bugs.ruby-lang.org/issues/16050#change-80582 * Author: sawa (Tsuyoshi Sawada) * Status: Rejected * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- Symbol literal allows `@` as the first character: ```ruby :@foo # => :@foo ``` Nevertheless, it does not allow `@` by itself: ```ruby :@ # >> SyntaxError: `@' without identifiers is not allowed as an instance variable name ``` This resembles #10463, but while #10463 is related to placeholder in a method name, the issue here is related to instance variable name, so I think they are different issues. -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>