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

Fix buggy syntax highlighting behavior involving "?" #73

Merged
merged 4 commits into from Aug 16, 2014

Conversation

mattdeboard
Copy link
Contributor

Fixes #42
Fixes #29
Fixes #30
Fixes #36
Refs #23

These fixes all stem from removing elixir-syntax-propertize and instead relying on the regex creation work in elixir-rx and elixir-rx-constituents. In short, by adding a font face to the code-point regex constituent, and putting it last in the list of defaults, it ensures the "escape character" fontification for the question mark will only be used as a last resort.

Regarding #23, that is still a failing test. I think there will need to be some further use of rx to ensure that the " character does not override the ~r// pattern. That is, a regex closure should signal the end of any previous fontification. It doesn't now, but it should.

This will ensure that if no other syntax highlighting rules apply, a question mark will "pop"
in terms of highlighting.
The original approach created more problems than it
solved. Additionally, the desired syntax highlighting behavior is
handled gracefully via `rx` and the `rx-constituents` approach I gleaned
from puppet-mode.el.
mattdeboard added a commit that referenced this pull request Aug 16, 2014
Fix buggy syntax highlighting behavior involving "?"
@mattdeboard mattdeboard merged commit 0e825ac into master Aug 16, 2014
@mattdeboard mattdeboard deleted the failing-highlight-tests branch August 18, 2014 20:02
J3RN pushed a commit to J3RN/emacs-elixir that referenced this pull request Apr 24, 2021
Also remove an old individual app lock file (that wasn't used)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant