Skip to content

JuliaSyntax misparses @var"\"" #58885

@Keno

Description

@Keno

1.9 and JULIA_USE_FLISP_PARSER=1:

julia> macro var"\""(args...)
       1
       end
@" (macro with 1 method)

julia> @var"\""
1

master:

julia> macro var"\""(args...)
       1
       end
@" (macro with 1 method)

julia> @var"\""
ERROR: LoadError: UndefVarError: `@\"` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
 [1] fl_lower
   @ ./flfrontend.jl:24 [inlined]
 [2] fl_lower(ex::Expr, mod::Module, filename::Ptr{UInt8}, lineno::UInt64)
   @ Base ./flfrontend.jl:23
in expression starting at REPL[2]:1

Found by inspecting JuliaSyntax source code rather than encountering it in any real code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions