From: nobu@... Date: 2018-02-20T08:21:26+00:00 Subject: [ruby-core:85679] [Ruby trunk Feature#4513] allow whitespace following EOL continuation backslash Issue #4513 has been updated by nobu (Nobuyoshi Nakada). Description updated Warning for a backslash followed by spaces is: Old: ``` $ ruby2.5 -e ' \ ' -e:1: syntax error, unexpected $undefined ``` Now: ``` $ ruby -e ' \ ' -e:1: syntax error, unexpected backslash ``` Does this help you? ---------------------------------------- Feature #4513: allow whitespace following EOL continuation backslash https://bugs.ruby-lang.org/issues/4513#change-70476 * Author: Rich_Morin (Rich Morin) * Status: Assigned * Priority: Normal * Assignee: nobu (Nobuyoshi Nakada) * Target version: ---------------------------------------- In a few programming languages, the displayed or printed program can hide critical syntactic and/or semantic information. For example, in make(1) and Python, the difference between initial tabs and spaces can cause bugs that are not visually apparent. Ruby has a minor instance of this problem, in that spaces or tabs between a backslash and the EOL will prevent the line from being continued: >> a \ ?> = 2 => 2 >> b \ SyntaxError: compile error (irb):3: syntax error, unexpected $undefined, expecting $end from (irb):3 Could Ruby open up its syntax to allow any number of intervening spaces or tabs before the EOL? -- https://bugs.ruby-lang.org/ Unsubscribe: