Skip to content

feat: import and use syntax support #9

Description

@SchoolyB

Summary

Grayscale supports a combined import and use statement (STANDARD.md §8.3) that imports a module and brings its members into scope in a single line. The LSP does not recognize this syntax.

Example

import and use @arrays
import and use @arrays, @strings

Equivalent to:

import @arrays
using arrays

Scope

  • Recognize import and use as valid syntax (no false diagnostics)
  • Treat the imported module as both imported and "used" for completion purposes
  • Add hover docs for the use keyword explaining its role in import and use

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions