Skip to content

string line continuation causes parse error in repl #59015

@rokke-git

Description

@rokke-git

see discourse

very consistent for me, seems to work occasionally for others?

julia> versioninfo()
Julia Version 1.11.6
Commit 9615af0f269 (2025-07-09 12:58 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 12 × 12th Gen Intel(R) Core(TM) i7-1265U
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, alderlake)
Threads: 1 default, 0 interactive, 1 GC (on 12 virtual cores)

julia> "This is a long \
ERROR: ParseError:
# Error @ REPL[2]:1:17
"This is a long \
#               ╙ ── invalid escape sequence
Stacktrace:
 [1] top-level scope
   @ none:1

julia> "the error message for <\\ > is slightly different\ 
ERROR: ParseError:
# Error @ REPL[3]:1:51
"the error message for <\\ > is slightly different\ 
#                                                 └┘ ── invalid escape sequence
Stacktrace:
 [1] top-level scope
   @ none:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    REPLJulia's REPL (Read Eval Print Loop)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions