[Kde-bindings] Code folding support for ruby
Thibauld Favre
tfavre at mandrakesoft.com
Wed Nov 3 13:05:11 UTC 2004
Hi all,
Last weekend, I took the time to implement a first shot of code folding
support for ruby. You'll find the ruby.xml file attached to this email. It's
pretty complete in my opinion but it sure needs a bit of testing....
The only thing it doesn't support is the "when" statement in "case" statement.
Indeed, the problem is that the same "end" closes the last "when" or "else"
statement AND the "case" statement :
case foo
when x
when y
else
end
I wasn't able to solve this problem but I think that someone more familiar
with kate xml highlighting could be able to find a solution. Also there's a
problem supporting nested "case" statement.... So, for instance, with my file
you can only fold the first "case" statement and it will fold the whole
block.
To test it, just put the ruby.xml file in your local
.kde/share/apps/katepart/syntax directory
You can report problems here :
http://bugs.kde.org/show_bug.cgi?id=91123
Regards,
Thibauld
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ruby.xml
Type: text/xml
Size: 10737 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20041103/08f98ecc/attachment.xml>
More information about the Kde-bindings
mailing list