News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Ruby lexer seems broken

Started by oBFusCATed, February 01, 2014, 04:43:33 PM

Previous topic - Next topic

oBFusCATed

I've just saw that the lexer for Ruby is broken.
Does someone know why?
It works as expected in Scite 3.3.6.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

dmoore

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?
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

oBFusCATed

This is how it looks on my machine: http://cmpt.benbmp.org/codeblocks/screens/ruby_lexer.png rev 9615 build from my git repo.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

dmoore

Oh, missing keywords? (That appears to be the case on mine too)
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

oBFusCATed

I think there are more problems, because the class/module/function name is no highlighted with the proper colour. They could be specified separately.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Jenna

I don't know much about (scintilla's) lexers, vut there seem to be no keywords defined at all.

oBFusCATed

Yeah, adding the keywords at slot 0 fixed the problem.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

#7
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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]