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

Grammar highlighting and auto indent #2

Closed
wuqs-net opened this issue Apr 21, 2017 · 2 comments
Closed

Grammar highlighting and auto indent #2

wuqs-net opened this issue Apr 21, 2017 · 2 comments

Comments

@wuqs-net
Copy link

image

  • When there is a loop inside a loop, grammar highlighting for loop does not work properly.
  • When there is more than one end loop, the auto indent also goes wrong.

Reproduce:
Copy code below into Atom and then auto-indent them.

loop
    put "hello"
    var i : int := 0
    loop
        put "world"
        i += 1
    end loop
end loop
@Alhadis
Copy link
Owner

Alhadis commented Apr 23, 2017

@trifirew I'm very busy at the moment. A pull request is welcome, if you want to fix this yourself.

@wuqs-net
Copy link
Author

wuqs-net commented May 1, 2017

@Alhadis I would like to. But I didn't find out where the problem is and how to fix it.

Alhadis added a commit that referenced this issue Mar 13, 2021
This fixes one of the issues reported in #2, that
being the inconsistent highlighting of a `loop` inside another `loop`.
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