Opened 16 months ago

Closed 5 months ago

Last modified 5 months ago

#98 closed enhancement (fixed)

Add gtksourceview-3.0 language file

Reported by: Philip Withnall Owned by: Olly Betts
Priority: minor Milestone: 1.2.39
Component: Other Version:
Keywords: Cc:

Description

If we install a gtksourceview-3.0 language file to /usr/share/gtksourceview-3.0/language-specs, gedit and other GtkSourceView?-based editors will get syntax highlighting. This will be particularly useful on the Expo laptop.

I’ve written a language file and will attach it to this ticket. I lack the enthusiasm to get it installed via autotools at the moment though.

The language file follows the documentation here: https://survex.com/docs/manual/datafile.htm. There seem to be some differences between the documentation and common usage wrt *team and *instrument commands. I’ve stuck with what the documentation specifies.

The reference for the GtkSourceView? language-spec format is here: https://developer.gnome.org/gtksourceview/stable/lang-reference.html.

Attachments (1)

survex.lang (14.6 KB) - added by Philip Withnall 16 months ago.
GtkSourceView? language-spec file

Download all attachments as: .zip

Change History (4)

Changed 16 months ago by Philip Withnall

Attachment: survex.lang added

GtkSourceView? language-spec file

comment:1 Changed 16 months ago by Philip Withnall

You can test the language file by dropping it into ~/.local/share/gtksourceview-3.0/language-specs/.

comment:2 Changed 5 months ago by Olly Betts

Resolution: fixed
Status: newclosed

Thanks. Committed in [506e348a5ef19f8abc3f3a359f7bd927dc54c658] and added the automake runes in [506e348a5ef19f8abc3f3a359f7bd927dc54c658].

There seem to be some differences between the documentation and common usage wrt *team and *instrument commands

Unfortunately CUCC seem to use their own special format (or just free-form text in some cases) for *team and *instrument, and cavern doesn't currently check them so this went unnoticed for ages. Therion's file format implements them pretty much as Survex documents, and it actually checks, so I think CUCC really needs to change to match the documented format.

comment:3 Changed 5 months ago by Olly Betts

Milestone: 1.2.39
Note: See TracTickets for help on using tickets.