Some thoughts from looking at the code.
- You can remove "DocCommentHighlightRules". I'm pretty sure they
don't apply for ruby
- the buildin variables look suspicious since they start with a "$"
(e.g. "$DEBUG") the "$" is a special character in regexps and needs to
be escaped. e.g. "\\$DEBUG"
- multi line strings work completely different in Ruby compared to
JavaScript. I'd remove them for the beginning
- I don't think ruby has future reserved keywords. You can remove this as well
Especially the second point will prevent your highlighter from working.
Best,
Fabian
> --
> You received this message because you are subscribed to the Google Groups
> "Ace Internals Dev" group.
> To post to this group, send email to ace-in...@googlegroups.com.
> To unsubscribe from this group, send email to
> ace-internal...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/ace-internals?hl=en.
>
this.addRules(docComment.getRules(), "doc-");
this.$rules["doc-start"][0].next = "start";
Best,
Fabian
"What exactly doesn't work..."
Can you check in your test code to github then I can take a look at
it. I don't see any references to ruby in the demo file
<https://github.com/Heigh-Tech/ace/blob/master/demo/startup.js>.
Fabian
On Tue, Feb 1, 2011 at 6:04 PM, szh <shlomoza...@gmail.com> wrote:
> I just finished adding ruby to demo/startup.js. What does that file do?
>