Hello all,
I am using the ruby bundle a lot, and I like it so much! But there are some annoyances where I have to decide between using TM/folding or rewriting my code. IMO the editor/grammar should not be confused by correct ruby syntax. I am using the latest textmate (downloaded today, 1258) and don't have any changes to the ruby bundle. I know, I could fix these in my copy of the ruby bundle, but I'd like to see the fixes in the distribution. Thanks in advance,
Patrick
-------------------------------------------------- lines=%{a b # <--- I'd like to have no indentation here on 'reindent' c} # missing folding marker
lines.collect do |line| line end.class # missing folding marker
tmp = lines.somemeth { |l| l.upcase }.foo # missing folding marker, wrong indentation
a = myvar.each do |x| x.foo end
def baz a=case foo # missing folding marker (or the one at the end is one too many) when :b # and incorrect indentation c when :d e end end --------------------------------------------------
And one more....
return :array if @strscan.check(/\s*[/) return :nameobject if @strscan.check(/\s*/[0-9a-zA-Z-]/) # incorrect indentation
Patrick
Hello again,
is this the right place to post? Should I contact anybody? I don't want to sound rude, but I'd really like to see these issues solved.
Patrick
--------------------------------------------------
I am using the ruby bundle a lot, and I like it so much! But there are some annoyances where I have to decide between using TM/folding or rewriting my code. IMO the editor/grammar should not be confused by correct ruby syntax. I am using the latest textmate (downloaded today, 1258) and don't have any changes to the ruby bundle. I know, I could fix these in my copy of the ruby bundle, but I'd like to see the fixes in the distribution. Thanks in advance,
Patrick
lines=%{a b # <--- I'd like to have no indentation here on 'reindent' c} # missing folding marker
lines.collect do |line| line end.class # missing folding marker
tmp = lines.somemeth { |l| l.upcase }.foo # missing folding marker, wrong indentation
a = myvar.each do |x| x.foo end
def baz a=case foo # missing folding marker (or the one at the end is one too many) when :b # and incorrect indentation c when :d e end end
On 19/9/2006, at 12:21, Patrick Gundlach wrote:
is this the right place to post? Should I contact anybody? I don't want to sound rude, but I'd really like to see these issues solved.
Have a look in the manual about how to customize foldings [1] and adjust indent settings [2].
You might be able to tweak the current rules to better fit your style, and I’ll gladly incorporate improvements into the default Ruby bundle -- it is however based on a non-Turing complete declarative system, so there are limits to what can be done.
[1] http://macromates.com/textmate/manual/ navigation_overview#customizing_foldings [2] http://macromates.com/textmate/manual/appendix#indentation_rules