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

UnicodeSyntax does not get highlighted #35

Open
kerscher opened this issue Nov 3, 2015 · 4 comments
Open

UnicodeSyntax does not get highlighted #35

kerscher opened this issue Nov 3, 2015 · 4 comments

Comments

@kerscher
Copy link
Contributor

kerscher commented Nov 3, 2015

When using the UnicodeSyntax language pragma, one should be able to substitute some ASCII sequences for Unicode characters as shown here and on the following table:

ASCII Unicode alternative Code point Name
:: :: 0x2237 PROPORTION
=> 0x21D2 RIGHTWARDS DOUBLE ARROW
forall 0x2200 FOR ALL
-> 0x2192 RIGHTWARDS ARROW
<- 0x2190 LEFTWARDS ARROW
-< 0x2919 LEFTWARDS ARROW-TAIL
>- 0x291A RIGHTWARDS ARROW-TAIL
-<< 0x291B LEFTWARDS DOUBLE ARROW-TAIL
>>- 0x291C RIGHTWARDS DOUBLE ARROW-TAIL
* 0x2605 BLACK STAR

However, it appears that the built-in syntax highlighter is unaware of this:
unicodesyntax

(Note that stack-ide works regardless — although not shown here the types are correct on the status bar)

Maybe it would be a good idea to override the default and use a new syntax highlighter, such as the one used by SublimeHaskell but augmented with this?

@kerscher
Copy link
Contributor Author

kerscher commented Nov 5, 2015

I've sent a PR to solve this partially in the default Haskell package: sublimehq/Packages#110

Is there interest in further work on this?

@lukexi
Copy link
Owner

lukexi commented Nov 5, 2015

Sweet, thanks Yghor — yeah, it would be wonderful to get all the improvements from SublimeHaskell merged into the default Haskell package for everyone's benefit. I can't enumerate them all off the top of my head but I know there are plenty of little bugs in the highlighting : )

@lukexi
Copy link
Owner

lukexi commented Nov 5, 2015

(and I'm certainly down to adopt the SublimeHaskell tmLanguage file here in the meantime)

@kerscher
Copy link
Contributor Author

Cool. It's ported with some additional niceties. :)

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

No branches or pull requests

2 participants