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

Improve symbol tokenization. #98

Merged
merged 5 commits into from May 11, 2020
Merged

Improve symbol tokenization. #98

merged 5 commits into from May 11, 2020

Conversation

j-piecuch
Copy link
Contributor

#97 incorrectly handles multi-character symbols such as ==.
This PR fixes #94 while correctly tokenizing multi-character symbols.

This reverts commit 32b013c, reversing
changes made to ecf0050.
I can't remember why I put it there... this case seems to handle
symbols, but we're already handling them.
@matthewbauer
Copy link
Member

Thanks! I completely screwed up that new test case.

I see that there is an error in the test suite though. Any idea what those are from?

`signum` is defined in `cl`, which is not required by `nix-mode`.
I don't think the use of such a simple function warrants an additional
import, so I decided to inline it.
@j-piecuch
Copy link
Contributor Author

The tests failed due to signum (provided by cl) not being in scope. I fixed it by inlining its use.

@matthewbauer matthewbauer merged commit 9043a8d into NixOS:master May 11, 2020
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

Successfully merging this pull request may close these issues.

Nix search paths at the end of the line breaks indentation of next line
2 participants