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 728137 - Language File for Apache Thrift IDL
Language File for Apache Thrift IDL
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: Syntax files
unspecified
Other All
: Normal normal
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2014-04-13 23:35 UTC by Randy Abernethy
Modified: 2015-01-04 18:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Language File for Apache Thrift IDL (8.82 KB, text/plain)
2014-04-13 23:35 UTC, Randy Abernethy
Details

Description Randy Abernethy 2014-04-13 23:35:53 UTC
Created attachment 274215 [details]
Language File for Apache Thrift IDL

Apache Thrift Language File with support for Thrift IDL (*.thrift)
Comment 1 Paolo Borelli 2014-04-14 06:59:04 UTC
Comment on attachment 274215 [details]
Language File for Apache Thrift IDL

Thanks, the file looks good (couple of minor nitpicks inline below)

If you also add it to Makefile.am and POTFILE.in and submit it as a "git format-patch" it would be very appreciated and the commit would be properly credit to you


><language id="thrift" _name="Thrift" version="2.0" _section="Sources">
>  <metadata>
>    <property name="mimetypes">text/x-thrift</property>

I do not think this mime type is included in shared-mime-info, so for the time being I would omit it (this metadata is not mandatory)


>    <context id="block-comment" style-ref="comment" class="comment" class-disabled="no-spell-check">
>      <start>/\*</start>
>      <end>\*/</end>
>      <include>
>        <context ref="def:escape"/>
>        <context ref="def:line-continue"/>

Is including escape and line-continue inside comment sections intentional or just copying from other lang files? If they are not needed you can simply use def:c-like-comment etc. If they are needed, then ok as you did.

>    </context>

purely stylistic: leave an empty line between each context definition

>    <context id="line-comment" style-ref="comment" end-at-line-end="true" class="comment" class-disabled="no-spell-check">
Comment 2 Randy Abernethy 2014-04-14 07:42:35 UTC
Hey Paolo,

Thanks for the review, I'll make the suggested updates and submit a patch.

Best,
Randy
Comment 3 Sébastien Wilmet 2014-05-09 20:24:50 UTC
Note: if you don't know how to use git, the .lang file is better than nothing.
Comment 4 Paolo Borelli 2015-01-04 18:04:29 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.