Note that there's a julia.lang in the Julia repo <https://github.com/JuliaLang/julia/blob/master/contrib/julia.lang>, an earlier version of which was submitted to gtksourceview <https://bugzilla.gnome.org/show_bug.cgi?id=700410> and included in it <https://git.gnome.org/browse/gtksourceview/plain/data/language-specs/julia.lang> (since release 3.10 IIRC).
Apart from the changes already made to the version in the JuliaLang repo since the submission (diff <http://www.diffchecker.com/vdq7u5zq>), issue #6132 <https://github.com/JuliaLang/julia/issues/6132> tracks the addition of support for multiline comments to various editors. I was meaning to address it but haven't had the time yet. If the versions linked/attached previously in this thread contain this or other fixes, those should at least be submitted to the julia.lang in the Julia repo. Afterwards, the changes should be submitted to gtksourceview as well. On Tuesday, July 29, 2014 11:17:00 AM UTC+1, Uwe Fechner wrote: > > Thanks, this works already nicely! > > Best regards: > > Uwe > > On Tuesday, July 29, 2014 12:04:06 PM UTC+2, Milan Bouchet-Valat wrote: >> >> Le mardi 29 juillet 2014 à 02:46 -0700, Uwe Fechner a écrit : >> > Hello, >> > >> > I am trying to teach gedit to understand the Julia syntax. >> > I am using Ubuntu 12.04, 64 bits. >> > >> > I tried the code from: >> > https://github.com/cko/juliaLang-gnome >> > >> > I copied julia.xml to /usr/share/mime and julia.lang >> > to /usr/share/gtksourceview-3.0/language-specs/ >> > >> > For updating the mime types I used: >> > sudo update-mime-database /usr/share/mime >> > >> > It does not work. >> > >> > I fixed an error in julia.xml and one error in julia.lang, >> > but there are still errors in julia.lang. >> > >> > See: https://gist.github.com/ufechner7/19e20d67d5000db294f2 >> > >> > I get the following error message if I launch gedit in the >> > console and open a .jl file: >> > >> > (gedit:12899): GtkSourceView-WARNING **: Failed to load >> > '/usr/share/gtksourceview-3.0/language-specs/julia.lang': Fehler beim >> > Kompilieren des regulären Ausdrucks (?-ix)\b('[^\']|\\.'|'\ >> > >> \[0-7]{1,3}'|'\x[0-9a-fA-F]{1,2}'|'\u[0-9a-fA-F]{1,3}'|'\u[0-9a-cA-C][0-9a-fA-F]{3}'|'\u[dD][0-7][0-9a-fA-F]{2}'|'\U[0-9a-fA-F]{1,5}'|'\U10[0-9a-fA-F]{4}')\b >> >> an Zeichen 59: Groß- und Kleinschreibung-beeinflussende Escape-Sequenzen >> (\l, \L, \u, \U) sind an dieser Stelle nicht erlaubt. >> > >> > (Translation: Error compiling the regular expression ... >> > Escape sequences, that influence capitalization (\l, \L, \u, \U) are >> > not allowed at this place.) >> > >> > Any idea how to fix this? >> I've not looked at the file, but I'm currently using the attached file >> and it works fine. It's not completely up-to-date as regards the >> standard function names, so it would need a little more work before it >> can be sent to the gedit developers (any help appreciated). >> >> >> Regards >> >
