Summary: | Long lines break C code highlighting | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Alexander Wilms <f.alexander.wilms> |
Component: | part | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED INTENTIONAL | ||
Severity: | normal | CC: | christoph, loh.tar |
Priority: | NOR | ||
Version First Reported In: | 22.04.0 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Initial Code
Code after obfuscating it three times Minimal example Screenshot of the minimal example |
Description
Alexander Wilms
2022-05-13 21:48:05 UTC
Created attachment 148810 [details]
Code after obfuscating it three times
Created attachment 148811 [details]
Minimal example
Created attachment 148812 [details]
Screenshot of the minimal example
IIRC is this not a bug but a feature :-) It's some kind of "optimization" to speed up things in most cases. Christoph could explain this in detail. But improvements are probably possible, or desirable. Yes, this is a feature to avoid spending too much time on highlighting. Naturally, one could start to add a user configurable limit for this, on the other side, I would assume one can agree that such code is not what you want. Any reasonable style guide will recommend that you do break up lines at some 100-200 columns, not at xxxx. Therefore I rather consider this intentional and not a bug to fix. If you want to step up to make this limit user configurable, merge requests are always welcome, but I don't think we shall spend time on this. |