Highlight CUDA .cu and .cuh files as C++
ClosedPublic

Authored by thomassc on Jan 1 2019, 9:38 PM.

Details

Summary

This patch makes the syntax highlighting use the C++ style for CUDA sources (.cu) and headers (.cuh) by default. This should work very well, since those are essentially C++ files with very little additional syntax.

Test Plan

Shortly tested manually in KDevelop, looked good.

Diff Detail

Repository
R216 Syntax Highlighting
Lint
Lint Skipped
Unit
Unit Tests Skipped
thomassc created this revision.Jan 1 2019, 9:38 PM
Restricted Application added projects: Kate, Frameworks. · View Herald TranscriptJan 1 2019, 9:38 PM
Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel. · View Herald Transcript
thomassc requested review of this revision.Jan 1 2019, 9:38 PM
dhaumann accepted this revision.Jan 1 2019, 11:47 PM
dhaumann added a subscriber: dhaumann.

The patch is fine, but when comitting, the version number should be increased.

This revision is now accepted and ready to land.Jan 1 2019, 11:47 PM
thomassc updated this revision to Diff 48519.Jan 2 2019, 11:16 AM

Thanks for having a look. I assume that the "version" attribute needs to be increased and the "kateversion" does not. I updated the diff accordingly. I don't think that I have any commit rights, can you commit?

This revision was automatically updated to reflect the committed changes.

Thanks! More patches welcome :-)