The attached patch adds support for Strings in matlab-mode.

Previously, character vectors such as:

a = 'char vector'
a = 'char '' vector'

were supported.   This patch enables

b = "string scalar"
b = "string "" scalar"

to also be highlighted.

There is one bug remaining which is that:

a = 'unterminated '' string

used to work, but now fails for char vector and string.    Unterminated strings 
still work for:

a = 'unterminated string

cases where there is no '' or "" in the string.

Enjoy
Eric

Attachment: matlab.el.string.patch
Description: matlab.el.string.patch

_______________________________________________
Matlab-emacs-discuss mailing list
Matlab-emacs-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss

Reply via email to