Skip to content

Conversation

rranelli
Copy link
Contributor

Fixes #172

(one-or-more (any "a-z" "A-Z" "_" "\"" "'"))
(and
(any "a-z" "A-Z" "_" "\"" "'")
(zero-or-more (any "a-z" "A-Z" "0-9" "_" "\"" "'")))
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the change from one-or-more to zero-or-more? This doesn't make sense to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The old regexp was:

(or 
  (one-or-more (any "a-z" "A-Z" "_" "\"" "'"))

...)

Which matches only :msisdn in the :msisdn2pid atom, leaving 2pid unhighlighted as described in #172.

By changing it to

(or 
  (and
    (any "a-z" "A-Z" "_" "\"" "'")
    (zero-or-more (any "a-z" "A-Z" "0-9" "_" "\"" "'")))

I ask for the first character in '("a-z" "A-Z" "_" "\"" "'") and the subsequent ones in '("a-z" "A-Z" "0-9" "_" "\"" "'"). This in turn matches the whole :msisdn2pid atom.

Sorry, I should've added more context to the PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense, thanks

@mattdeboard
Copy link
Contributor

Please just add a regression test for this change and it should be good to merge.

@rranelli
Copy link
Contributor Author

Alright, will do.

@mattdeboard
Copy link
Contributor

You can see an example here.

@rranelli
Copy link
Contributor Author

@mattdeboard I have added the regression test for #172 as you requested.

(also, why do we run cask test --no-win in travis? I don't understand the need or the advantages of it)

@andreas-roehler
Copy link
Contributor

@mattdeboard ert itself has some bugs WRT to display and buffer. See here for example:

http://debbugs.gnu.org/db/16/16853.html

Suggest to drop these --no-win tests.

@rranelli
Copy link
Contributor Author

ping,

Any more thoughts on this PR?

Thanks!

mattdeboard added a commit that referenced this pull request May 19, 2015
@mattdeboard mattdeboard merged commit 5f85550 into elixir-editors:master May 19, 2015
@rranelli rranelli deleted the fix-#172 branch November 24, 2015 19:52
J3RN pushed a commit to J3RN/emacs-elixir that referenced this pull request Apr 24, 2021
* Add changelog test to verify that the changelog is correctly linked

* Update changelog

* Add elixir-editors#497

* Specify that the fuzzy completion is only for functions

* Fix formatting

* update changelog for elixir-editors#505

* Update changelog for elixir-editors#501, elixir-editors#473, and elixir-editors#504

* Update changelog for #507 and vscode elixir-editors#176

* Update changelog for #511

* Update changelog for elixir-editors#492
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.

Numeric digits in atoms break syntax highlighting
3 participants