Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: MortenMacFly on November 28, 2005, 01:13:17 pm

Title: Lexer: Matlab (with remaining issues)
Post by: MortenMacFly on November 28, 2005, 01:13:17 pm
Dear all,

attached I am providing the lexer files for Code::Blocks to enable Matlab syntax highlighting. Of course Matlab (M-) files cannot be compiled with C::B but everybody that develops S-functions or similar might want to have a look in a M-script file where syntax highlighting is very helpful.

But: I had some troubles integrating the new lexer into Code::Blocks:
1.) I copied the new lexer files into the "share\Codeblocks\lexers" folder. Thus C::B imported the lexer on restart but after that the keywords of all languages after the "M" letter (e.g. Ogre, XBase...) were displaced. This might be a bug in C::B but I would like somebody else to reproduce. To resolve this issue I have completely deleted the C::B settings from registry and application folder. The fresh re-initialisation then was successful.
2.) I have defined user-keywords that include all non-default (extended) Matlab functionality. But they are not highlighted and I don't know why. Can somebody help?

Before I submit the final version as a patch to SourceForge I would like to have these issues solved. Any help is appreciated.

Morten.

Ps.: I know that some function keywords of Matlab7 are missing. This is on purpose to be backwards compatible down to Matlab v6.1.


[attachment deleted by admin]
Title: Re: Lexer: Matlab (with remaining issues)
Post by: MortenMacFly on November 30, 2005, 10:18:10 pm
...hello? ...somebody out there? :lol:

I saw the file has been downloaded several times. If somebody tried and has news for me I would really welcome any comments to continue working on it.

With regards,

Morten.
Title: Re: Lexer: Matlab (with remaining issues)
Post by: takeshimiya on November 30, 2005, 10:32:30 pm
Keep the good work!

Seems like  there aren't much users of Matlab here.
You tried in the Matlab forum?