Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: oBFusCATed on February 01, 2014, 04:43:33 pm

Title: Ruby lexer seems broken
Post by: oBFusCATed on February 01, 2014, 04:43:33 pm
I've just saw that the lexer for Ruby is broken.
Does someone know why?
It works as expected in Scite 3.3.6.
Title: Re: Ruby lexer seems broken
Post by: dmoore on February 01, 2014, 06:12:34 pm
I don't really know ruby, but it looks OK to me on this sample: http://sandbox.mc.edu/~bennet/ruby/code/box_rb.html.
Is the highlight mode correctly set for ruby?
Title: Re: Ruby lexer seems broken
Post by: oBFusCATed on February 01, 2014, 06:28:56 pm
This is how it looks on my machine: http://cmpt.benbmp.org/codeblocks/screens/ruby_lexer.png rev 9615 build from my git repo.
Title: Re: Ruby lexer seems broken
Post by: dmoore on February 01, 2014, 07:04:41 pm
Oh, missing keywords? (That appears to be the case on mine too)
Title: Re: Ruby lexer seems broken
Post by: oBFusCATed on February 01, 2014, 09:15:51 pm
I think there are more problems, because the class/module/function name is no highlighted with the proper colour. They could be specified separately.
Title: Re: Ruby lexer seems broken
Post by: Jenna on February 01, 2014, 09:39:05 pm
I don't know much about (scintilla's) lexers, vut there seem to be no keywords defined at all.
Title: Re: Ruby lexer seems broken
Post by: oBFusCATed on February 01, 2014, 11:17:39 pm
Yeah, adding the keywords at slot 0 fixed the problem.
Title: Re: Ruby lexer seems broken
Post by: MortenMacFly on February 02, 2014, 09:01:27 pm
I should check the changelog of Scintilla. But indeed, I am testing scintilla and editors itself but not for all lexers. :-/

BTW: There is another patch to (wx)Scintilla pending...

Edit: Here is the main part of the scintilla the changelog - there were a lot changes on lexers...
Quote
Version 3.3.8 improves drawing quality and enhances lexers.
Version 3.3.7 uses responsive scrolling on OS X 10.9, enhances lexers, and fixes bugs.