[mercury-users] Ouch! The .m extension and Objective-C

Tyson Dowd trd at cs.mu.OZ.AU
Mon Aug 20 17:42:51 AEST 2001


On 19-Aug-2001, Roy Ward <roy at videoscript.com> wrote:
> on 19/8/01 3:20 AM, Fergus Henderson at fjh at cs.mu.OZ.AU wrote:
> > Even if that is the case, I don't think it is likely to be a significant
> > problem.  Mercury's build system, Mmake, will work fine even if there
> > are Objective-C files that use the `.m' extension in the same directory
> > as Mercury files.
> 
> That's worth knowing - I hadn't tested it, having not yet had Mercury
> and Objective-C close to each other.
> 
> I guess the thing that has irritated me most so for is that I'm one
> thoe people who like syntax colouring and autoindent in editors -
> I'm used to the strange colouring in Mercury programs, but have
> you ever seen a Mercury program indednted as obj-C?
> 
> This is probably not worh going to the effort of changing the
> Mercury suffix for though - it will just continue to be a low
> level annoyance.

Most decent editors let you set the syntax highlighting settings from
within a comment in the file, so you could probably just override files
using a single line.

But I don't know what the exact syntax for this is in {vim,emacs}.

Tyson.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list