Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Open
amarshall opened this Issue · 0 comments

1 participant

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.