This was submitted as an issue on github: https://github.com/JuliaLang/julia/issues/5800
The problem was that the 3 first ending quotes is interpreted as the end of the literal, and that leaves a single double quote that causes parser errors later on. Ivar kl. 16:24:18 UTC+1 torsdag 13. februar 2014 skrev Stefan Karpinski følgende: > > You're not doing anything wrong at all – this is a parser bug. Would you > be willing to file an issue on github? > https://github.com/JuliaLang/julia/issues/new > > > On Thu, Feb 13, 2014 at 9:50 AM, Laszlo Hars <[email protected]<javascript:> > > wrote: > >> I wanted (in a macro) to print out quoted string literals, like "a", >> given as parameters (0.3.0 prerelease). This is how the manual suggests to >> do it at a Julia prompt, but it does not work: >> print(""""a"""") >> I guess, the parser should catch the first three " characters, then get >> into another state, in where it should look for the last three " >> characters. But it does not. >> I could use single double quotes in both ends, and replace the inside >> quotes with \", but it is not nice. Am I doing something wrong? >> > >
