I tried the case with: % foobar 1
and it font-locked ok for me. The comment/string highlighter won't highlight areas that are already highlighted by something else. Do you have any other font-lock trickery going on that might be highlighting numbers before the matlab lockers start up? Eric From: ole petter orhagen <ol...@hotmail.com> Sent: Wednesday, October 24, 2018 12:18 PM To: matlab-emacs-discuss@lists.sourceforge.net Subject: Re: [Matlab-emacs-discuss] Font-lock breakage? lol, looking a little closer at emacs regexps it seems this should match numerals. Then I'm afraid I'm out of ideas on how to fix this in a nippy ________________________________ Fra: ole petter orhagen <ol...@hotmail.com<mailto:ol...@hotmail.com>> Sendt: onsdag 24. oktober 2018 18.14.41 Til: matlab-emacs-discuss@lists.sourceforge.net<mailto:matlab-emacs-discuss@lists.sourceforge.net> Emne: Re: [Matlab-emacs-discuss] Font-lock breakage? ________________________________ Fra: ole petter orhagen <ol...@hotmail.com<mailto:ol...@hotmail.com>> Sendt: onsdag 24. oktober 2018 18.04 Til: matlab-emacs-disc...@lists.sourceforge.com<mailto:matlab-emacs-disc...@lists.sourceforge.com> Emne: Font-lock breakage? Hi, It seems to me that font-locking is somewhat broken. I might be wrong however. The issue seems to be: % foobar Works just fine % foobar1 Also works However % foobar 1 or any other number for that matter - will break font-locking. However, looking at the function 'matlab-font-lock-comment-match', and the regex '\\(%[^%\n]*\\)', this will not match numerals. Is this a conscious design decition? Cheers -O
_______________________________________________ Matlab-emacs-discuss mailing list Matlab-emacs-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss