Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Haskell] Fix qualified import alias scope name #3280

Merged
merged 1 commit into from
Apr 11, 2022

Conversation

deathaxe
Copy link
Collaborator

@deathaxe deathaxe commented Mar 17, 2022

Fixes #3227 (comment)

This commit ...

  1. scopes an imported namespace's alias name variable.namespace as
    it doesn't introduce/declare anything new but another name for the
    imported module.
  2. escapes from import context as early as possible by using more
    strictly sub-contexts which enforce certain order of terms to reduce
    risk of failing to highlight following expressions correctly.

This commit ...

1. scopes an imported namespace's alias name `variable.namespace` as
   it doesn't introduce/declare anything new but another name for the
   imported module.
2. escapes from `import` context as early as possible by using more
   strictly sub-contexts which enforce certain order of terms to reduce
   risk of failing to highlight following expressions correctly.
@deathaxe deathaxe merged commit 5ee9503 into sublimehq:master Apr 11, 2022
@deathaxe deathaxe deleted the pr/haskell/fix-namespace-alias branch April 11, 2022 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Haskell] The syntax highlighting changes are too dramatic to bear.
4 participants