On Sat, Apr 22, 2006 at 01:10:56PM -0600, Robert Dodier wrote: > Hello everyone, > > Vim rocks. There, I had to get it off my chest. 8^) > > I have created a syntax colorization file for scripts written for > the Maxima computer algebra system (http://maxima.sf.net). > Typically these scripts are named with .mac filename extension. > But Bram tells me that some assembler files also use that same > extension. What is a reliable way to distinguish the two? > Any ideas are very welcome. > > best, > Robert Dodier > > PS. Here is the syntax file I created: > http://maxima.sourceforge.net/misc/maxima.vim > > PPS. Here is a short Maxima script. The language is reminiscent > of ALGOL-60 -- oh, how I yearn for the good old days ... 8^) > > /* Comments are enclosed by slash-splat ... splat-slash */ > > multp (e) := not atom(e) and op(e) = "*"; > > divp (e) := not atom(e) and op(e) = "//";
I do not know how reliable it is, but searching for the Maxima assignment operator (I assume that is what := is.) looks like a possibility. HTH --Benji Fisher