Skip to content

Wrongly parsed String expression #10532

@SimonDanisch

Description

@SimonDanisch

I wasn't able to build a minimal example (like always with parsing errors?! )
But Julia insisted that there is an ERROR: syntax: unexpected end
The place was consistently at that one end of some method, even though that I moved the code around and un-commented stuff.
The real error was this though:

#same file, at the beginning (probably never moved the "end method" before this)
let shader_cache = Dict{(GLenum, Vector{Uint8}), GLuint}() 
    function test()
        get(shader_cache, "s") do 
            error("shader $shadername didn't compile. \n$(getinfolog(shaderid)") # <- one bracket missing
        end
    end
end

Tested: Windows: 0 day master, 0.3.5, Ubuntu: 0.4 some days old.

Best,
Simon

Metadata

Metadata

Assignees

No one assigned

    Labels

    parserLanguage parsing and surface syntax

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions