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

Recognize ? char syntax #28

Merged
merged 3 commits into from Jul 22, 2013

Conversation

antifuchs
Copy link
Contributor

This should fix the same issue as #26, except without the indent breakage.

The change introduces a syntax propertization hook, which will rewrite the syntax properties for any free-standing ? and the character it escapes.

This introduces a syntax-propertize function that will ferret out
non-constituent ? characters and apply the generic string delimiter
syntax text property to it and the character it escapes. (This handles
?\# sequences too.)

Fixes elixir-editors#26.
Since we're using a syntax property function, we can attempt to be
smarter about parser state. I'd like to extend this to sigil
expressions, also (which I suspect might be a possible way to fix
elixir-editors#23).
antifuchs added a commit that referenced this pull request Jul 22, 2013
@antifuchs antifuchs merged commit 62da428 into elixir-editors:master Jul 22, 2013
@antifuchs antifuchs deleted the recognize-qm-char-syntax branch July 22, 2013 06:53
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.

None yet

1 participant