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 577596 - Syntax highlighting for Automake files
Syntax highlighting for Automake files
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: Syntax files
git master
Other All
: Normal enhancement
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2009-04-01 09:29 UTC by scott
Modified: 2014-04-23 21:20 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Fix makefile highlighting for .am files (1000 bytes, patch)
2010-03-25 14:39 UTC, Garrett Regier
none Details | Review
Patch to add Automake syntax highlighting and improve Makefile highlighting (16.81 KB, patch)
2010-10-01 18:56 UTC, Philip Chimento
none Details | Review
Zip of files changed in patch (13.78 KB, application/x-compressed-tar)
2010-10-01 20:56 UTC, Philip Chimento
  Details
Revised patch against master (16.27 KB, patch)
2011-06-06 20:03 UTC, Philip Chimento
none Details | Review
LGPLv3 patch (16.11 KB, patch)
2011-09-15 17:11 UTC, Philip Chimento
none Details | Review
Use map_width and not map_size in update_clones (1.42 KB, patch)
2014-04-23 21:18 UTC, Jonas Danielsson
none Details | Review
Position user layers on the center of the viewport (2.57 KB, patch)
2014-04-23 21:19 UTC, Jonas Danielsson
none Details | Review

Description scott 2009-04-01 09:29:23 UTC
.am need to use the makefile highlighting
Comment 1 Johannes Schmid 2009-04-01 10:44:22 UTC
Moving to gtksourceview - we use their magic to detect the correct highlighting engine.
Comment 2 Garrett Regier 2010-03-25 14:39:16 UTC
Created attachment 157062 [details] [review]
Fix makefile highlighting for .am files
Comment 3 Philip Chimento 2010-10-01 18:56:00 UTC
Created attachment 171535 [details] [review]
Patch to add Automake syntax highlighting and improve Makefile highlighting

I'd like to contribute this language definition file for Automake files. It highlights makefile variables that mean something special to Automake, as well as doing regular makefile highlighting. It also improves the current makefile.lang so that it highlights the bodies of rules as shell code.

This patch obsoletes the previous patch for this bug.
Comment 4 Philip Chimento 2010-10-01 18:59:56 UTC
P.S. The patch is on gnome-2-30, not master, because I don't have GTK 3 on this box.
Comment 5 Philip Chimento 2010-10-01 20:56:04 UTC
Created attachment 171543 [details]
Zip of files changed in patch

Added whole files for use in master
Comment 6 Philip Chimento 2011-06-06 20:03:37 UTC
Created attachment 189360 [details] [review]
Revised patch against master

Hey, here's a patch against git master, finally!
Comment 7 Philip Chimento 2011-09-15 15:54:17 UTC
Ping?
Comment 8 Carnë Draug 2011-09-15 16:37:59 UTC
Can you please change the license to LGPL? Currently, that's the only license being accepted for the project (see bug #159134).
Comment 9 Philip Chimento 2011-09-15 17:11:23 UTC
Created attachment 196656 [details] [review]
LGPLv3 patch

Of course. Here is another patch licensed LGPLv3.
Comment 10 Paolo Borelli 2011-09-17 13:51:46 UTC
Review of attachment 196656 [details] [review]:

Hi sorry for the delay. I am checking this out from my phone so I will need to take a closer look and test when I am back home, however the patch looks good at a first glance.

With regard to licensing would you be ok with lgplv2 like the rest of gtksourceview?

If we include this now the file will need to go in potfiles.skip for this cycle since we are already string frozen.

Did you make up the mime type or is it part of shared-mime-info? We prefer to include the mime metadata only if it is official otherwise it can be omitted
Comment 11 Philip Chimento 2011-09-18 09:25:14 UTC
I hereby grant you permission to license it under whatever license will get the patch accepted.

I made up the mime type, so feel free to delete line 27 of automake.lang.
Comment 12 Paolo Borelli 2011-09-18 09:48:57 UTC
The lang file is now on git master and will be in the next version. I also removed the Makefile.* glob from makefile.lang so that automake.lang is properly detected for Makefile.am files.

Thanks again for the contribution and for you patience :-)
Comment 13 Philip Chimento 2011-09-18 10:06:31 UTC
Thank you too for reviewing it!
Comment 14 Jonas Danielsson 2014-04-23 21:18:55 UTC
Created attachment 274999 [details] [review]
Use map_width and not map_size in update_clones
Comment 15 Jonas Danielsson 2014-04-23 21:19:00 UTC
Created attachment 275000 [details] [review]
Position user layers on the center of the viewport