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 <[email protected]>
Sent: Wednesday, October 24, 2018 12:18 PM
To: [email protected]
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 <[email protected]<mailto:[email protected]>>
Sendt: onsdag 24. oktober 2018 18.14.41
Til: 
[email protected]<mailto:[email protected]>
Emne: Re: [Matlab-emacs-discuss] Font-lock breakage?




________________________________
Fra: ole petter orhagen <[email protected]<mailto:[email protected]>>
Sendt: onsdag 24. oktober 2018 18.04
Til: 
[email protected]<mailto:[email protected]>
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss

Reply via email to