Author Topic: Lexer: Matlab (with remaining issues)  (Read 4820 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Lexer: Matlab (with remaining issues)
« 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]
« Last Edit: November 30, 2005, 10:17:41 pm by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Lexer: Matlab (with remaining issues)
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

takeshimiya

  • Guest
Re: Lexer: Matlab (with remaining issues)
« Reply #2 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?