Bug 276296 - OpenCL language highlighting support
Summary: OpenCL language highlighting support
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: syntax (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-23 00:39 UTC by Squall
Modified: 2013-04-27 10:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.11


Attachments
OpenCL Highlight file (10.99 KB, text/xml)
2013-02-07 12:47 UTC, Pedro
Details
OpenCL syntax file (11.64 KB, text/xml)
2013-03-06 14:22 UTC, Pedro
Details
OpenCL syntax file (11.71 KB, text/xml)
2013-04-26 11:31 UTC, Pedro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Squall 2011-06-23 00:39:44 UTC
Version:           unspecified (using KDE 4.6.2) 
OS:                Linux

OpenCL is a programming language that is based on Cuda. It is used to program using GPU and take advantage of largely parallel computing that GPU can provide.

I want to ask to add syntax highlighting for OpenCL.

Thanks

Reproducible: Didn't try
Comment 1 Christoph Cullmann 2011-08-12 09:14:05 UTC
Its a good wish, but we can't keep wish lists open for all kind of missing hls.
Perhaps look at kate-editor.org how to write a hl, else closing this.
Comment 2 Pedro 2013-02-07 12:47:50 UTC
Created attachment 76972 [details]
OpenCL Highlight file
Comment 3 Pedro 2013-02-07 12:49:39 UTC
(In reply to comment #0)
> Version:           unspecified (using KDE 4.6.2) 
> OS:                Linux
> 
> OpenCL is a programming language that is based on Cuda.

Incorrect; OpenCL is based on C, as is Cuda. They are siblings, not descendants.

> 
> I want to ask to add syntax highlighting for OpenCL.

I have attached a highlight file to the report; put it in /usr/share/apps/katepart/syntax/ directory and it should work, unless you installed with a different prefix.

> 
> Thanks
> 
> Reproducible: Didn't try
Comment 4 Pedro 2013-03-06 14:22:17 UTC
Created attachment 77801 [details]
OpenCL syntax file

Added missing unsigned types to previous version of the syntax file
Comment 5 Christoph Feck 2013-04-23 21:54:01 UTC
Thanks for the patch. Kate developers prefer to review longer patches on reviewboard. You can find more information here: http://kate-editor.org/2012/10/28/contribute-to-kate/
Comment 6 Pedro 2013-04-26 11:31:17 UTC
Created attachment 79459 [details]
OpenCL syntax file

Updated file: missing "__read_only" and "__write_only" image type qualifiers.
Comment 7 Dominik Haumann 2013-04-27 10:02:24 UTC
Git commit f027093a91c5d7b97526ef8485036e31dacaa4c7 by Dominik Haumann.
Committed on 27/04/2013 at 12:02.
Pushed by dhaumann into branch 'master'.

add OpenCL highlighting

Thanks to Pedro for the patch.
FIXED-IN: 4.11

A  +257  -0    part/syntax/data/opencl.xml

http://commits.kde.org/kate/f027093a91c5d7b97526ef8485036e31dacaa4c7