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

Braces/brackets/parens matching when using same type for % literal, surrounding, and inner is wrong #209

Closed
amarshall opened this issue Apr 16, 2014 · 1 comment
Labels

Comments

@amarshall
Copy link
Contributor

Here’s an example:

#     cursor  match
#       ↓     ↓
     (%((foo)))
#    ↑  ↑     ↑
#    ↑  match  cursor
#    ↑
#  this has no match when cursor is over it

This happens also with (at least) square brackets ([]) and braces ({}). All three levels must use the same brace type in order to have the issue. Also an issue with other % literals.

Here’s some screen shots:
Screen shot of issue with parenthesis
Screen shot of issue with square brackets
Screen shot of issue with curly braces

Note, however, that the match for the inner-most closing brace/bracket/paren is matched correctly:

# match
#  ↓
(%((foo)))
#      ↑
#    cursor
@amarshall amarshall changed the title Braces/brackets/parens matching when using same for % literal, surrounding, and inner is wrong Braces/brackets/parens matching when using same type for % literal, surrounding, and inner is wrong Apr 16, 2014
@amarshall
Copy link
Contributor Author

This seems to work now as I can no longer reproduce; closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants