Update 1: Ruby Plugin for IDEA

It’s been a busy week. Not much time for my fun projects.. Only today I started looking back into the Ruby plugin for IDEA. I see two ways that I’m willing to follow:

1. Embed JRuby into the Plugin and offer a Ruby-bases configuration file for the syntax definitions.

2. Clone the JavaScript example plugin and do a string-replace “JavaScript” to “Ruby”.

I actually like the first idea a lot more. And it’s much closer to my current solution, which is basically a hack using hardcoded lexer, keywords, etc.. I like the idea of having a simple config syntax to define the keywords and other parts of the languages that I want to hilight. Obviously there may be some performance issues..

The second idea, cloning the JavaScript thing, well.. it’s huge! And using JFelx for the lexer is nearly overkill.. imho.. :) I simply don’t like these ‘theoretically correct’ but not too pragmatic/usable solutions..

tfdj

No comments yet. Be the first.

Leave a reply