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 642272 - Add .lang file for J programming language
Add .lang file for J programming language
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: Syntax files
2.0.x
Other Linux
: Normal normal
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2011-02-14 08:37 UTC by tikkanz
Modified: 2012-08-20 20:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
language syntax definition for J programming language (7.60 KB, text/plain)
2011-02-14 08:37 UTC, tikkanz
Details
updated j.lang based on comments (8.07 KB, text/plain)
2011-02-14 09:33 UTC, tikkanz
Details
updated j.lang with 2-space indents (7.35 KB, application/octet-stream)
2011-04-12 20:28 UTC, tikkanz
Details
Updated j.lang to fix handling of Note (7.35 KB, text/plain)
2011-04-12 20:53 UTC, tikkanz
Details
Adds "map-to"s in styles section (7.56 KB, application/octet-stream)
2011-05-15 23:02 UTC, tikkanz
Details
Add contact email (7.61 KB, text/plain)
2011-05-15 23:44 UTC, tikkanz
Details
fixed indents? (7.62 KB, text/plain)
2011-05-27 23:15 UTC, tikkanz
Details
Test file to add to testfiles.sh (370 bytes, text/plain)
2011-05-27 23:16 UTC, tikkanz
Details

Description tikkanz 2011-02-14 08:37:06 UTC
Created attachment 180803 [details]
language syntax definition for J programming language

The IDE for the J progamming language is Gtk-based and uses Gtksourceview to provide syntax highlighting for J script files.
Comment 1 tikkanz 2011-02-14 08:41:55 UTC
I'd appreciate any feedback on the attached .lang file. I can provide a .xml file too if that's of any interest.
Comment 2 Ignacio Casal Quinteiro (nacho) 2011-02-14 08:44:49 UTC
Some comments:
You are missing the license in the top, see other files for this.
Do not indent after the comments keep it in the same level.
Comment 3 tikkanz 2011-02-14 09:33:54 UTC
Created attachment 180809 [details]
updated j.lang based on comments

Added license and removed indenting under comments
Comment 4 Ignacio Casal Quinteiro (nacho) 2011-04-12 12:51:26 UTC
More comments:

you are using 2 space indentation in some places and 4 indentation in others. You should use always 2 space indentation.
Comment 5 tikkanz 2011-04-12 20:28:25 UTC
Created attachment 185832 [details]
updated j.lang with 2-space indents

All indents in j.lang have been standardized as 2-spaces.
Comment 6 tikkanz 2011-04-12 20:53:53 UTC
Created attachment 185833 [details]
Updated j.lang to fix handling of Note

Fix handling of multi-line (monadic) vs single line (dyadic) use of Note.
Comment 7 Paolo Borelli 2011-04-25 19:55:06 UTC
The file is missing "map-to" attributes in the style section which is needed to pick up default colors from the color-schemes included in gtksourceview
Comment 8 tikkanz 2011-05-15 23:02:25 UTC
Created attachment 187875 [details]
Adds "map-to"s in styles section
Comment 9 tikkanz 2011-05-15 23:03:33 UTC
(In reply to comment #7)
> The file is missing "map-to" attributes in the style section which is needed to
> pick up default colors from the color-schemes included in gtksourceview

Thanks. I've added a new version of the file with "map-to" attributes in the style section.
Comment 10 Carnë Draug 2011-05-15 23:30:43 UTC
I think it would be nice if you could provide a way to contact you on the header together with the copyright (as it happens on the other files). Something like this:

 Authors: YOUR_NAME
 Copyright (C) 2011 NAME <EMAIL>

If the developers for some reason want to change the license of gtksourceview, it seems they have to ask permission to every person that holds the copyright which  would include you.
Comment 11 tikkanz 2011-05-15 23:44:34 UTC
Created attachment 187876 [details]
Add contact email
Comment 12 tikkanz 2011-05-15 23:45:15 UTC
(In reply to comment #10)
> I think it would be nice if you could provide a way to contact you on the
> header together with the copyright (as it happens on the other files).
> Something like this:
> 
>  Authors: YOUR_NAME
>  Copyright (C) 2011 NAME <EMAIL>
> 
> If the developers for some reason want to change the license of gtksourceview,
> it seems they have to ask permission to every person that holds the copyright
> which  would include you.

Thanks. Done.
Comment 13 Ignacio Casal Quinteiro (nacho) 2011-05-27 13:50:31 UTC
The file looks good to me, just some minor indentation issues. Could you please fix them and also provide a test file of no more than 10 lines to add to our testfiles.sh script?
Comment 14 tikkanz 2011-05-27 23:15:08 UTC
Created attachment 188791 [details]
fixed indents?

I think this corrects the remaining indent issues?
Comment 15 tikkanz 2011-05-27 23:16:27 UTC
Created attachment 188792 [details]
Test file to add to testfiles.sh
Comment 16 Akhil Laddha 2011-07-11 08:45:11 UTC
Ignacio Casal, patch is available for review, tia.
Comment 17 tikkanz 2012-08-20 20:32:43 UTC
Is there anything I can do to facilitate the inclusion of this in gtksourceview?
Comment 18 Paolo Borelli 2012-08-20 20:49:10 UTC
Sorry for the delay. I committed it