FS#26285 - [gtksourceview3] Add syntax highlighting for PKGBUILD files

Attached to Project: Arch Linux
Opened by Thomas (radioactiveman) - Wednesday, 05 October 2011, 20:23 GMT
Last edited by Jan Alexander Steffens (heftig) - Sunday, 16 October 2011, 14:12 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
[Geany] has a sed-fix to show bash-like syntax highlighting for PKGBUILD files.
[gedit] uses the file "sh.lang" for that.
This one could be patched in the same way like the Geany config file.

Additional info:
* gtksourceview3 3.2.0-1
* /usr/share/gtksourceview-3.0/language-specs/sh.lang

How to achieve:
Use this command:
sed -i 's|*.sh|*.sh;PKGBUILD|' /.../sh.lang (path has to be fixed)
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Sunday, 16 October 2011, 14:12 GMT
Reason for closing:  Won't implement
Additional comments about closing:  gedit lets you change the highlight mode, and remembers it per-file.

If you want a PKGBUILD language spec, just copy the sh.lang one and alter it appropriately.
Comment by Jakob Matthes (jakobm) - Wednesday, 05 October 2011, 22:02 GMT
I don't think this should be patched. With both geany and gedit you can select the filetype (and maybe set it up in configuration).
I am not familiar with gtksourceview, is it possible to provide own files in gtksourceview-3.0/language-specs (could be then packaged with pacman-contrib)? Not sure about the benefit (scope of gtksourceview), and I am rather indifferent on this issue.
Comment by Thomas (radioactiveman) - Sunday, 16 October 2011, 13:53 GMT
In my opinion this can be patched because it's such a small tewak but very useful.
[Geany] is also not the only program which use a patch like this. [Medit] does the same ...

PKGBUILD attached.
   PKGBUILD (0.8 KiB)

Loading...