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

Remove line that caused tests to not indent at all in the tests and fix regression #67

Closed
wants to merge 4 commits into from
Closed

Remove line that caused tests to not indent at all in the tests and fix regression #67

wants to merge 4 commits into from

Conversation

etu
Copy link
Collaborator

@etu etu commented Jan 4, 2019

This fixes #64.

Still work in progress. Just wanted to see the test failure from travis.

@etu etu changed the title [WIP] Remove line that caused tests to not indent at all in the tests Remove line that caused tests to not indent at all in the tests Jan 4, 2019
@etu
Copy link
Collaborator Author

etu commented Jan 4, 2019

So got a test failure on the first commit, which was the point. And that failure should be fixed with the second commit.

@etu etu changed the title Remove line that caused tests to not indent at all in the tests Remove line that caused tests to not indent at all in the tests and fix regression Jan 4, 2019
… indents at all

This is to prevent bugs with running the indentation code at all in
the future to not have regressions related to that.
@@ -117,7 +117,7 @@ Valid functions for this are:

(defconst nix-re-quotes "''\\|\"")

(defconst nix-re-comments "#\\|/\\*\\|\\*/")
(defconst nix-re-comments "#\\|/*\\|*/")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm... Perhaps I don't know emacs regex as well as I thought. But shouldn't the * be escaped here? You want it to match /* and */.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, my elisp regex is bad as well. I just evalled the older revision of the file and grabbed the value from there. So the one I changed it to here is the one that been in use for ages.

@etu etu closed this Jan 4, 2019
@etu etu deleted the fix-recent-regressions branch January 4, 2019 19:32
@etu etu mentioned this pull request Jan 4, 2019
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.

Some commits caused bad indentation and broke the tests
2 participants