Skip to content

Incorrect error for (..) in using statements #550

Closed as not planned
Closed as not planned
@jonniediegelman

Description

@jonniediegelman
using JuliaSyntax

txt = "using Measurements: (..)"
JuliaSyntax.parse(SyntaxNode, txt)

emits a warning:

ERROR: ParseError:
# Warning @ line 1:17
using Measurements: (..)
#                   └──┘ ── parentheses are not required here

This is incorrect, though, because removing those parentheses makes it unparsable:

txt = "using Measurements: .."
JuliaSyntax.parse(SyntaxNode, txt)
ERROR: ParseError:
# Error @ line 1:23
using Measurements: ..
#                     └ ── premature end of input

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions