JuliaSyntax.jl icon indicating copy to clipboard operation
JuliaSyntax.jl copied to clipboard

Triple-quoted var does not work

Open Liozou opened this issue 1 year ago • 1 comments

Using the var"..." syntax to construct a variable fails when using triple quotes, i.e. var"""...""". This is a regression compared to the previous parser so I believe this is a parsing problem that belongs here, but let me know if I should open this issue on the main Julia repo instead.

In julia v1.9 and before:

julia> var"""x""" = 12
12

julia> x
12

whereas in julia v1.10 and later:

julia> var"""x""" = 12
ERROR: LoadError: UndefVarError: `@var_str` not defined
in expression starting at REPL[1]:1

Liozou avatar Dec 15 '23 10:12 Liozou