Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started 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.
-
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?
-
This is how it looks on my machine: http://cmpt.benbmp.org/codeblocks/screens/ruby_lexer.png rev 9615 build from my git repo.
-
Oh, missing keywords? (That appears to be the case on mine too)
-
I think there are more problems, because the class/module/function name is no highlighted with the proper colour. They could be specified separately.
-
I don't know much about (scintilla's) lexers, vut there seem to be no keywords defined at all.
-
Yeah, adding the keywords at slot 0 fixed the problem.
-
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...
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.