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

Having 32 symbols exported in a module messes up syntax highlighting for the entire file #4

Open
avh4 opened this issue Dec 15, 2014 · 1 comment

Comments

@avh4
Copy link
Contributor

avh4 commented Dec 15, 2014

I have a module with the following first line:

module Core.Array (Value, Zipper, value, toValue, do, toJson, firstZipper, lastZipper, lastZipperM, remove, map, indexedMap, active, zipper, append, prepend, mapAt, firstZipperThat, lastZipperThat, zipperAt, zipperAtM, moveUp, moveDown, update, countLeft, countRight, lefts, rights, firstZipperM, goPrev, goNext, decoder) where

(There are 32 export symbols.) As a result, the rest of the file is highlighted incorrectly (see image).

screen shot 2014-12-15 at 12 54 51 pm

Removing any one of the exported symbols so that there are 31 or fewer in the list makes the highlighting work correctly again (see image)

screen shot 2014-12-15 at 12 56 13 pm

@edubkendo
Copy link
Owner

Quite bizarre! I believe the relevant code is here: https://github.com/edubkendo/atom-elm/blob/master/grammars/elm.cson#L229 but I'm not seeing anything at all obvious. A bug in the regex engine or syntax highlighting engine perhaps?

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