peppy wrote:I figured that might be the case. If I get the time I might fork and give it a go to see how it handles performance-wise. I think it is be a matter of personal opinion whether such an addition makes things cluttered or more usable.
def my_function(things)
things.each do |thing|
...
end
end
Acciaccatura wrote:Thanks for this great plugin, it's very useful.
I was wondering if you had any plans to add support for Ruby, particularly the matching of Ruby's method and block syntax? I noticed you mentioned you weren't a Ruby developer, so here's a quick example:
- Code: Select all
def my_function(things)
things.each do |thing|
...
end
end
In this example, there would be two pairs of "braces":
1) "def" would match the final "end".
2) "do" would match the other "end".
I had a quick look at implementing this myself in the hope it was a quick change, but didn't get too far with my limited Python experience.
facelessuser wrote:The functionality you are looking for is the same as highlighting brackets, but the code to highlight these keywords like brackets don't fit in the algorithm at all.
You are not the first to ask this, and I have not yet decided if I want to pursue this yet. I will consider it, but I will not make any promises.
<dict>
<key>name</key>
<string>Bracket Tag</string>
<key>scope</key>
<string>bracket.tag</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#FD971F</string>
</dict>
</dict>{
"quote_scope" : "bracket.quote",
"curly_scope" : "bracket.curly",
"round_scope" : "bracket.round",
"square_scope": "bracket.square",
"angle_scope" : "bracket.angle",
"tag_scope" : "bracket.tag",
}a = 'bc'
a = "b"'
a = 'bc';
a = "bc";
vitaLee wrote:i noticed several things when i tried swap quotes plugin
quoted text at column 1 doesnt trigger bracket highlights.
vitaLee wrote:that's not what initially caught my attention but i think it may be related to the next thing.
having delcaration like this
- Code: Select all
a = 'bc'
when i try "swap quotes" i get
- Code: Select all
a = "b"'
notice that in its initial state the line ends with the closing quote.
if you add whatever character at the end of the line, then it works as expected
- Code: Select all
a = 'bc';
a = "bc";
Return to Plugin Announcements
Users browsing this forum: No registered users and 6 guests