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

Open
amarshall opened this Issue Apr 16, 2014 · 0 comments

2 participants

@amarshall

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 from Braces/brackets/parens matching when using same for `%` literal, surrounding, and inner is wrong to Braces/brackets/parens matching when using same type for `%` literal, surrounding, and inner is wrong Apr 16, 2014
@dkearns dkearns added the ftplugin label Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment