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

Highlighting is highly incorrect #9

Open
be5invis opened this issue Apr 9, 2017 · 1 comment
Open

Highlighting is highly incorrect #9

be5invis opened this issue Apr 9, 2017 · 1 comment

Comments

@be5invis
Copy link

be5invis commented Apr 9, 2017

Missing features:

  • interface, implementation, namespace, export, and rewrite … in … are not colored as keywords
  • Identifier names ending with multiple 's will cause all text after it being colored as string.
  • Does not support 'identifier, "label-as-type".

cc. @edwinb

@david-christiansen
Copy link
Member

Depending on what APIs Sublime provides for coloring text, I would imagine that the best fix would be to use the Idris compiler's highlighting information directly. That way, it can also respond to things like user syntax extensions. This is how the Emacs mode and my hacky slide presentation package work.

It looks to me like Sublime's plugin API does support custom coloring code, with the add_regions API call. Though I didn't see if the set of scopes was user-extensible.

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