mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
Estimated hours taken: 1
Branches: main
trace/mercury_trace_internal.m:
When the input contains an unmatched quote or backslash, which can
happen when the user accidentally types ctrl-D, do not abort, which can
lose a long debugging session. Instead, just print a message.
tests/debugger/cmd_quote.{inp,exp}:
Update this test case to test the new functionality.
26 lines
185 B
Plaintext
26 lines
185 B
Plaintext
echo on
|
|
print \ foo
|
|
print \\
|
|
print 'foo'
|
|
print '\''
|
|
print ''''
|
|
print \
|
|
foo \
|
|
bar \
|
|
baz
|
|
print 'foo
|
|
bar
|
|
baz '
|
|
print '
|
|
foo \
|
|
bar \'
|
|
'
|
|
\\\
|
|
\\\\
|
|
\\\\\\\\
|
|
\'\'\'\'
|
|
'foo\''
|
|
\ \ \ .
|
|
'\ \\\''
|
|
'
|