Skip to content

Improved Haskell and PureScript - #3020

Merged
RunDevelopment merged 2 commits into
PrismJS:masterfrom
RunDevelopment:issue3006
Jul 30, 2021
Merged

RunDevelopment merged 2 commits into
PrismJS:masterfrom
RunDevelopment:issue3006

Conversation

@RunDevelopment

Copy link
Copy Markdown
Member

I made changes to PureScript according to #3006. I also made improvements to Haskell all of which trickle down to PureScript.

Haskell changes:

  • . is now highlighted as punctuation inside import statements, hvariables, and constants.
  • Hvariables and constants can now end with a '. The \b at the end of both patterns previously prevented this.
  • I split the operator regex into 3 regexes to make it easier to understand. I also simplified the ASCII operator regex (3).

PureScript changes:

  • . is now highlighted as punctuation inside import statements.
  • Improved ASCII operators as discussed here.
  • Support all UTF16 Unicode operators. This means that all Unicode operators symbols in the BMP are supported. Symbols in the astral planes are not supported because they aren't commonly used and increase the file size by a lot.

This resolves #3006.

@github-actions

github-actions Bot commented Jul 30, 2021 •

Copy link
Copy Markdown

JS File Size Changes (gzipped)

A total of 2 files have changed, with a combined diff of +684 B (+34.7%).

Details
file master pull size diff % diff
components/prism-haskell.min.js 1.5 KB 1.53 KB +25 B +1.7%
components/prism-purescript.min.js 465 B 1.12 KB +659 B +141.7%

Generated by 🚫 dangerJS against 82522b6

@RunDevelopment

Copy link
Copy Markdown
Member Author

PureScript gains a bit of weight but it's still smaller than Haskell, so it should be alright.

@toastal, this should solve your issue, right?

@toastal

toastal commented Jul 30, 2021

Copy link
Copy Markdown
Contributor

lgtm 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unicode operator support missing from PureScript

2 participants