diff options
author | John Högberg <john@erlang.org> | 2022-02-23 10:35:24 +0100 |
---|---|---|
committer | John Högberg <john@erlang.org> | 2022-02-23 11:59:00 +0100 |
commit | 73b5495a89202aa76cc53260214372869facbb06 (patch) | |
tree | b1247ccc40e9e57cab304ea32f169ccf09f149f0 /erts/emulator/utils | |
parent | cd29dfb2ec786242bdb36548c2901c70a15803c0 (diff) | |
download | erlang-73b5495a89202aa76cc53260214372869facbb06.tar.gz |
erts: Normalize formatting and disallow `\` in ops.tab
Diffstat (limited to 'erts/emulator/utils')
-rwxr-xr-x | erts/emulator/utils/beam_makeops | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/erts/emulator/utils/beam_makeops b/erts/emulator/utils/beam_makeops index 44ff8b47c5..da850ed7cb 100755 --- a/erts/emulator/utils/beam_makeops +++ b/erts/emulator/utils/beam_makeops @@ -451,14 +451,13 @@ while (<>) { } chomp; if (s/\\$//) { - $_ .= <>; - redo unless eof(ARGV); + error("line continuation with `\\` is no longer allowed"); } elsif (/([|]|=>)$/) { # Automatically continue a line that ends in '|' or '=>'. my $next_line = <>; - $_ .= $next_line; + $_ .= $next_line; chomp $next_line; - redo unless eof(ARGV) or $next_line eq ''; + redo unless eof(ARGV) or $next_line eq ''; } next if /^\s*$/; next if /^\#/; |