![]() ![]() Changing from to made the errors go away. It turns out when a reference context is used, the id attribute cannot be set. ![]() I reused the "shell-like-comment" definition from def.lang for Julia's single-line comments, but that was getting me a lot of errors.I did, however, have other issues which I'll note here in case they're of help to anyone: ![]() Update: my mistake was indeed not changing the context id as pointed out by in his answer. What could I be doing wrong? This guy seemed to have the same problem, but it was never revealed in that thread how he solved it (if he ever did). What's more, if I select the Matlab entry from the syntax highlighting menu, the formatting is made correctly (according to Matlab rules), even though both matlab.lang and julia.lang have exactly the same syntax definitions! Still, when reopening gedit the same issue occurs. Thinking that I might have done something wrong, I tried instead using an existent language file, for a similar language ( Matlab), and only changed the header metadata into: Įverything else was kept exactly as-is, and I saved the file as julia.lang. jl file is indeed recognized and the syntax highlighting menu is set to julia, but no actual highlighting occurs. However, upon restarting gedit after copying the new julia.lang file to /usr/share/gtksourceview-3.0/language-specs/, a. I have read the tutorial, the reference document and the wiki page Gedit/NewLanguage, and I believe the file to be correct. lang file for getting Gedit to recognize the Julia programming language. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |