Skip to content

Strengthen "foreign import" highlight #46

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

Merged

Conversation

Hi-Angel
Copy link
Member

@Hi-Angel Hi-Angel commented Apr 7, 2025

This fixes a bug where foreign import wasn't getting highlighted if it's the only text on the line, adds a bunch of tests for this syntax, and gets rid of foreign export, which isn't a thing in PureScript, as can be seen here.

Hi-Angel added 3 commits April 7, 2025 19:47
Prior to this commit a valid code like

    foreign import
        foo

wasn't getting correctly highlighted. This fixes it.

While doing so, we also remove all the ccall/stdcall/etc stuff, which
is a legacy from haskell-mode and doesn't exist in purescript.
"foreign export" isn't a thing in PureScript. It's a legacy from
haskell-mode, remove it.
@Hi-Angel Hi-Angel force-pushed the fix-foreign-import-highlight branch from 0e63abd to 98648c3 Compare April 8, 2025 04:19
@Hi-Angel Hi-Angel merged commit 8c47367 into purescript-emacs:master Apr 9, 2025
5 checks passed
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.

1 participant