After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 782739 - Add support for maxima, an open-source computer algebra system
Add support for maxima, an open-source computer algebra system
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: Syntax files
git master
Other Linux
: Normal enhancement
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2017-05-17 10:43 UTC by Gunter Königsmann
Modified: 2017-05-21 12:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The patch that adds maxima syntax highlighting to libgtksourceview. (79.00 KB, patch)
2017-05-17 10:43 UTC, Gunter Königsmann
none Details | Review
The corrected version of the patch that adds support for maxima, a full-featured open-source computer algebra system. (79.00 KB, patch)
2017-05-21 11:13 UTC, Gunter Königsmann
none Details | Review
The corrected version of the patch that adds support for maxima, a full-featured open-source computer algebra system. (68.51 KB, patch)
2017-05-21 11:15 UTC, Gunter Königsmann
none Details | Review

Description Gunter Königsmann 2017-05-17 10:43:59 UTC
Created attachment 352018 [details] [review]
The patch that adds maxima syntax highlighting to libgtksourceview.

Maxima is an open-source computer algebra system that is used in many schools, firms and universities. It is quite powerful - and on its mailing list I've just found a link to a repo containing a language spec for libgtksourceview. This spec was gpl'ed => handing in a patch.
Comment 1 Sébastien Wilmet 2017-05-21 10:40:30 UTC
Review of attachment 352018 [details] [review]:

Thanks for the *.lang file.

The license header is not formatted the same as other *.lang files. Copy for example the license header of c.lang and adapt the copyrights. The license is the LGPLv2.1+.

Also, the indentation must be with 2 spaces.

Other than that, since I know nothing about Maxima I suppose the *.lang file is correct.
Comment 2 Gunter Königsmann 2017-05-21 11:12:15 UTC
I've opened a few source files of maxima - and the syntax highlighting seems to indicate that the file is correct => Trying to attach the patch that corrects both issues you found.

Kind regards,

 Gunter.
Comment 3 Gunter Königsmann 2017-05-21 11:13:46 UTC
Created attachment 352266 [details] [review]
The corrected version of the patch that adds support for maxima, a full-featured open-source computer algebra system.
Comment 4 Gunter Königsmann 2017-05-21 11:15:05 UTC
Created attachment 352267 [details] [review]
The corrected version of the patch that adds support for maxima, a full-featured open-source computer algebra system.
Comment 5 Gunter Königsmann 2017-05-21 11:16:17 UTC
My first try to upload the corrected file didn't work (he error was on my side). But the currently attached version should work now.
Comment 6 Sébastien Wilmet 2017-05-21 11:42:33 UTC
Thanks, I've pushed commit 0730022fba9800cb13a4a6b75a7afd40b3fa8248 on the master branch (what will become GtkSourceView 4).
Comment 7 Sébastien Wilmet 2017-05-21 11:44:04 UTC
The commit message was not well formatted, see:
https://wiki.gnome.org/Git/CommitMessages

(but it was a small issue, I've fixed it).
Comment 8 Gunter Königsmann 2017-05-21 12:11:24 UTC
Thanks a lot! And thanks for the pointer to the wiki page: My next patch will be correct in this respekt.