This is a simple extension that matches keyword blocks like brackets, ()
, []
, or {}
. When the cursor is on or next to a block keyword it will underline it and the opening/closing word. This extension was designed with Elixir in mind, so the default keywords are do
and fn
to open, and end
to close. This extension is fully configurable to match any keywords though!
For example, in Ruby you would have to add while
, if
, def
, etc, to doEndMatch.keywords.open
for it to work, but it'd be doable. If you have any issues or requests for features open a ticket on GitHub and I'd be happy to help if possible.
alt+shift+\
Setting | Default | Description |
---|---|---|
doEndMatch.keywords |
{ |
Keywords to match. Any combination of words in open and close will trigger matches. |
doEndMatch.style |
{ |
Custom style for matching do...end blocks |
doEndMatch.wordSeparators |
" \n\t`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?" |
Characters that will be used as word separators when looking for do/end. |
doEndMatch.ignoreDoWithColon |
true |
When enabled fixes a bug that causes do: to still match with end in Elixir. |
I used the source code from Subtle Match Brackets as guide for this extension. It's a great extension that adds customizability to the style of matched brackets.