vscode-elixir
vscode-elixir copied to clipboard
Highlight start of code block when selecting the end, and vice versa
It'd be nice if when selecting end
in the code block below, def
is highlighted, and vice versa. Currently VSCode just highlights other instances of end
.
def myfunc do
# stuff
end
worryingly when I searched google for how/if this is possible this issue came up. I'm not sure if this is achievable with the VSCode extensions at the moment but I will look into it
I think the Ruby extension does this. I already tried finding the code that does this but got tired.
It may be a completely separate thing but matching/highlighting in eex templates would be a welcome addition too. Specifically on opening/closing element tags, i.e.
, and opening closing < >. If you switch the language over to the stock html one it does this already. It looks like for eex it is highlighting all instances of a given tag.
https://github.com/rubyide/vscode-ruby/blob/master/ruby.js#L11
This is how the ruby plugin does it (see the following lines) I will try to implement this here, if noone else wants to take a look?
Did this end up getting updated? @fr1zle
@richjdsmith Sadly, no. I tried doing this in #34 but there are many edge cases not covered. Feel free to look into it, though!
I can try and take a look at this