|
Post by barryk on Mar 9, 2011 8:23:26 GMT 1
I noticed that bacon.vim syntax highlighter, and also the highlighter file in gtksourceview, does not have color highlighting for the HUG functions.
I was wondering if there is any particular reason for leaving these out?
Or, if it is possible to color-highlight them, do Vim or gtksourceview allow for them to be identified as functions but with their own unique color?
|
|
|
Post by Pjot on Mar 9, 2011 11:17:24 GMT 1
Hi Barry,
The HUG include is just a set of external BaCon functions which do not belong to the language itself. It is a 'wrapper' around GTK to make GUI programming easy.
Therefore no syntax highlighting for HUG is provided, nor for the SQLITE, GMP or the BEEP wrappers.
But of course these functions can be added, maybe indeed in a special color, as the functionnames are not really genuine BaCon statements. If I have time I will look into it...
Regards Peter
|
|
|
Post by Pjot on Mar 9, 2011 21:55:06 GMT 1
So I did it quickly... added the HUG wrapper functions with a beautiful new color. Also I have removed some inconsistencies between the two, and improved the syntax definitions even more! Regards Peter
|
|
|
Post by barryk on Mar 10, 2011 3:57:05 GMT 1
That's great, I have updated them.
Note, in bacon.lang I have changed the mime type from text/x-bac to text/x-bacon, as this is what we have BaCon mime handling set to in Puppy.
The mime types of all other languages use the full language name. For example, looking in /usr/share/mime/globs:
text/x-vala:*.vala application/x-perl:*.pl text/x-python:*.py text/x-eiffel:*.e text/x-fortran:*.f
This makes it unambiguous/unique and likely to be accepted by the shared-mime-info maintainers. Or, maybe I am being excessively fussy.
Regards, Barry Kauler
|
|
|
Post by Pjot on Mar 10, 2011 8:48:04 GMT 1
Thanks Barry,
I have changed the mime-type also to 'text/x-bacon'
Regards Peter
|
|