MATLAB: detection; float boundaries.

#676 Open
Repository
anntzer
Branch
default
Repository
birkenfeld
Branch
default

Bitbucket cannot automatically merge this request.

The commits that make up this pull request have been removed.

Bitbucket cannot automatically merge this request due to conflicts.

Review the conflicts on the Overview tab. You can then either decline the request or merge it manually on your local system using the following commands:

hg update default
hg pull -r 438d9d9ddd08 https://bitbucket.org/anntzer/pygments-main
hg merge 438d9d9ddd08
hg commit -m 'Merged in anntzer/pygments-main (pull request #676)'
Author
  1. Antony Lee
Reviewers
Description
  • Detect .m files starting with a function definition as MATLAB, not ObjC (#1149).
  • Require word boundaries in regexes matching numbers and floats, to avoid mishighlighting load 123file as starting with a number.
  • Treat arguments to command form calls (cmd foo bar) as strings.

Comments (1)

  1. Antony Lee author

    I actually have a slightly updated version on my fork (matlab-improvements bookmark) but I gave up on understanding how to PR from a bookmark (if possible at all...) so if anyone is going to review/merge this, please let me know and we can figure out the best approach to get the latest version in.