| Summary: | Kotlin syntax does not permit comments in very many places | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-syntax-highlighting | Reporter: | hatzka <kdebug> |
| Component: | syntax | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | walter.von.entferndt, waqar.17a |
| Priority: | NOR | ||
| Version First Reported In: | 5.107.0 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/syntax-highlighting/-/commit/4c5d01c5937baa59c195ff61e1cec8b790adcff4 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: |
Sample code containing comments that aren't highlighted as comments
The sample code, as displayed in Kate. |
||
|
Description
hatzka
2023-06-22 04:33:49 UTC
Hi, Would be great if you could provide sample code that exhibits the issue along with a screenshot. That would make it easier for anyone wanting to work on this. Even better if you can fix this yourself and submit a patch. The syntax file for kotlin lives here https://invent.kde.org/frameworks/syntax-highlighting/-/blob/master/data/syntax/kotlin.xml. Checkout https://docs.kde.org/stable5/en/kate/katepart/highlight.html to know how to test the file and changes locally. Created attachment 159846 [details]
Sample code containing comments that aren't highlighted as comments
Created attachment 159847 [details]
The sample code, as displayed in Kate.
I did try to fix this myself, and I found that documentation, but it was complex enough I had to give up. I suppose if nobody who knows the format better is around to do it, I can try again. A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/501 Git commit 4c5d01c5937baa59c195ff61e1cec8b790adcff4 by Jonathan Poelen. Committed on 11/07/2023 at 22:13. Pushed by cullmann into branch 'master'. Kotlin: fix Comment and Annotation ; add keywords M +33 -0 autotests/folding/test.kt.fold M +33 -0 autotests/html/test.kt.dark.html M +33 -0 autotests/html/test.kt.html M +33 -0 autotests/input/test.kt M +33 -0 autotests/reference/test.kt.ref M +39 -6 data/syntax/kotlin.xml https://invent.kde.org/frameworks/syntax-highlighting/-/commit/4c5d01c5937baa59c195ff61e1cec8b790adcff4 |