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

Misaligned Literate Idris highlightling in idris-mode #4478

Closed
fabianhjr opened this issue Jun 15, 2018 · 1 comment
Closed

Misaligned Literate Idris highlightling in idris-mode #4478

fabianhjr opened this issue Jun 15, 2018 · 1 comment

Comments

@fabianhjr
Copy link
Contributor

fabianhjr commented Jun 15, 2018

> data Day = Monday
>          | Tuesday
>          | Wednesday
>          | Thursday
>          | Friday
>          | Saturday
>          | Sunday
>
> next_weekday : Day -> Day
> next_weekday d = case d of
>                      Monday    => Tuesday
>                      Tuesday   => Wednesday
>                      Wednesday => Thursday
>                      Thursday  => Friday
>                      Friday    => Saturday
>                      Saturday  => Sunday
>                      Sunday    => Monday

Steps to Reproduce

  1. Save code as Literate.lidr
  2. idris-load-file in Emacs with idris-mode

Expected Behavior

Correct highlighting

Observed Behavior

Highlighting shifts 2 places to the left. (Corresponding to the > in the editor)

screenshot from 2018-06-14 23-39-20

Software Info

idris --version: 1.3.0-git:PRE
emacs --version: GNU Emacs 26.1

Related: #1736

Crosspost from idris-hackers/idris-mode#480

@nicolabotta
Copy link

As far as I can see, this issue is still unresolved in Idris 1.3.2, see #4799 (comment).

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