If you make a git diff, output to a file and open it with kate, it folds the code in correctly (uses @@ starting lines as toplevel instead of the ones starting with diff. IMO the levels should be: 1st.- lines starting with diff --git 2nd.- lines starting with @@ without nesting them (that is another problem) Reproducible: Always Steps to Reproduce: 1. Open a git diff output file 2. Fold top level nodes (View-> Code Folding) 3. See what happens with ^diff lines and ^@@ lines. Actual Results: that diff is nested under @@ and each @@ is nested under the previous @@ Expected Results: to have all ^diff starting lines and if I opened them, to have all ^@@ lines
Hi txomon, it would be cool if you provide us with a fix for this. The syntax highlighting definition file for diffs is katepart/syntax/diff.xml You can find documentation about how the synax highlighting works here: -http://docs.kde.org/stable/en/kde-baseapps/kate/katehighlight-system.html -http://docs.kde.org/stable/en/kde-baseapps/kate/katehighlight-xml-format.html - http://docs.kde.org/stable/en/kde-baseapps/kate/kate-highlight-rules-detailled.html Kate has more than 200 highlighting files, we ourselves are not able to fix /all/ of them, so we need your help ;)
I have tried to fix it on my own but I didn't fully understand the .xml syntax. Will keep trying.
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone!
Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone!