JuliaSyntax.jl
JuliaSyntax.jl copied to clipboard
no error for over-long character literal
I get
julia> 'abc'
'a': ASCII/Unicode U+0061 (category Ll: Letter, lowercase)
Should be
julia> 'abc'
ERROR: syntax: character literal contains multiple characters
This is part of a broader problem with diagnostics not being present in validating string->value conversions. The general fix for these kind of issues will be something like https://github.com/JuliaLang/JuliaSyntax.jl/issues/82#issuecomment-1232317622
This was somewhat improved as a side effect of #121 but still needs a more systematic fix.
Also related to this - invalid escape sequences don't give a useful error.