JuliaLang / JuliaLang/JuliaSyntax.jl

Make `public` parse similar to `export`

Open
#502 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
Julia
Stars
293
Forks
50
PR merge metrics
No merged PRs in 30d

Description

I expect `public` to parse similarly to `export`, but that doesn't seem to be the case.

On Julia 1.11.0-rc3 (and all other versions I have tested):
```
julia> begin
export foo
end

julia> begin
public foo
end
ERROR: ParseError:
# Error @ REPL[2]:2:12
begin
public foo
# └─┘ ── Expected `end`
Stacktrace:
[1] top-level scope
@ none:1

julia> :(export foo)
:(export foo)

julia> :(public foo)
ERROR: ParseError:
# Error @ REPL[4]:1:10
:(public foo)
# └─┘ ── Expected `)`
Stacktrace:
[1] top-level scope
@ none:1
```

Is this a bug or mistaken expectations?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.