#27 Support for MATLAB files

closed-fixed
None
5
2009-10-09
2004-05-07
Malcolm Wood
No

Support for MATLAB code files (*.m) would be really
useful. It would only really need to identify functions
(including subfunctions). In fact, I think that the
following three lines would be enough:

/* function [x,y,z] = asdf */
addTagRegex (language, "^function *\\[.*\\] = ([a-
zA-Z0-9_]+)", "\\1", "f,function", NULL);
/* function x = asdf */
addTagRegex (language, "^function *[a-zA-Z0-9_]+
= *([a-zA-Z0-9_]+)", "\\1", "f,function", NULL);
/* function asdf */
addTagRegex (language, "^function *([a-zA-Z0-9_]+)
[^=]*$", "\\1", "f,function", NULL);

I can send/upload the whole file (and the changes to
parsers.h and source.mak) if it would help.

Discussion

  • Darren Hiebert
    Darren Hiebert
    2004-07-27

    • assigned_to: nobody --> dhiebert
     
  • Elliott Hughes
    Elliott Hughes
    2007-05-27

    Logged In: YES
    user_id=1127237
    Originator: NO

    (Objective-C also uses .m, which might cause trouble.)

     
  • David Fishburn
    David Fishburn
    2008-12-13

    Assigned to Dave to check effort

     
  • David Fishburn
    David Fishburn
    2008-12-13

    • assigned_to: dhiebert --> dfishburn
     
  • David Fishburn
    David Fishburn
    2008-12-14

    matlab.c has been added with these regex.
    Worked with simple files.
    Will be in the first release after 5.7

     
  • David Fishburn
    David Fishburn
    2009-10-09

    Matlab support was added in the 5.8 release

     
  • David Fishburn
    David Fishburn
    2009-10-09

    • status: open --> closed-fixed