ccampbell/rainbow — pull request #8 by mking (2012-03-27 06:04:09+00:00)
Title: Add ruby, shell patterns.

Hi Craig,

Here are language modules for ruby and shell.

Re: shell: While `generic` should suffice for `shell` in most cases, I ran into an issue where globs (`/*`) were being confused for C-style comments, causing the remainder of the file to appear commented out. I therefore reduced the comment pattern to simply hash comments. I also added shell-specific keywords. I tested `shell.js` against `sstephenson/ruby-build`.

Re: ruby: I added ruby-specific keywords, heredocs, symbols, and sigils (global/class/instance scope). I tested `ruby.js` against `rack`.

Let me know what you think.