new ruby language mode (ruby.xml v0.7.0 by Jim Morris)
Submitted by Friday, 18 May, 2007 - 22:41
on
Note This version is probably incompatible with the ruby macros and ruby plugin, it is intented for those that want correct ruby auto indentation without the other ruby plugin features.
Works with Jedit >= 4.3pre9.
I use the new unindentThisLine and unindentNextLines and the ElectricKeys to do the indentation.
Basically the improvements are...
1. else, elsif, rescue, end - will unindent immediately when you type the final character just like } does (ie e from else f for elsif d from end etc the electric part of ElectricKeys)
2. added support for blah.each do |f| syntax which now indents correctly
There is at least one unfortunate side effect which doesn't seem to bother me too much (YMMV),
if you type some manual indentation at the start of the line, and then one of the electric keys (d e f) the line will indent to the current indentation level.
Updated on 05/27/2007 - 19:40
Downloads: 1280