diff options
author | Som Snytt <som.snytt@gmail.com> | 2015-09-27 22:00:21 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2015-09-27 22:00:21 -0700 |
commit | f29096285f39dfea25c0644ed3066fb9630def78 (patch) | |
tree | ac948636328d5918ab5f4c33b8dbd2315cf12a42 /src/library | |
parent | bc3589d3ebab7735fbbb130fbb7c8ccb1146eef7 (diff) | |
download | scala-f29096285f39dfea25c0644ed3066fb9630def78.tar.gz scala-f29096285f39dfea25c0644ed3066fb9630def78.tar.bz2 scala-f29096285f39dfea25c0644ed3066fb9630def78.zip |
SI-9492 Line trimming paste
Use `-` stripmargin character to indicate trim (i.e.
remove leading indentation). `<<` looks more like
shift left, but is already the standard here doc sequence.
Indentation is often mangled by pasting, so trimming
normalizes lines for error messages. The entire paste
text was already trimmed as a whole.
`-Dscala.repl.here` provides a default end string, which
is unset unless specified.
```
scala> :pa <-
// Entering paste mode (ctrl-D to finish)
def g = 10
def f! = 27
--
// Exiting paste mode, now interpreting.
<console>:2: error: '=' expected but identifier found.
def f! = 27
^
```
Diffstat (limited to 'src/library')
0 files changed, 0 insertions, 0 deletions