Re: [gedit-list] Octave vs. Objective-C



tor, 18 03 2010 kl. 23:30 +0100, skrev Jesse van den Kieboom:
> >> We use the shared mime type database for detecting the type of a  
> >> file.
> >> In gtksourceview, first the glob specified by the language files is
> >> matched to the filename. Then if there are more than 1 matches, the
> >> mime-type is checked. In the case of octave and obj-c, they both have
> >> the same globs in gsv and in the mime database. So the way they can  
> >> be
> >> differentiated then is only by the mime magick header detection,  
> >> which
> >> means if the file starts with either 'function' or '%' it is  
> >> detected as
> >> octave, but otherwise it seems it's obj-c.
> >
> > Ahh, I see. I guess this is a bug in the Octave .lang file as it  
> > should
> > also recognise '#' which is the default comment-marker. We have a guy
> > working on improving the .lang file, so I'll just have him fix this.
> 
> No, it's not in the lang spec, but in the mime spec.

Ahh, that makes sense. I've filed a bug report on this

  https://bugs.freedesktop.org/show_bug.cgi?id=27205

Thanks,
Søren



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]