Summary: | Code folding seems broken | ||
---|---|---|---|
Product: | [Applications] kile | Reporter: | Ville Aakko <ville.aakko> |
Component: | editor | Assignee: | Michel Ludwig <michel.ludwig> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nibgonz |
Priority: | NOR | ||
Version First Reported In: | 2.9.93 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/syntax-highlighting/0b6c88cfc16780cbbe8ccc1a9f5b0a796365a069 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | A minimal test case for bug |
Description
Ville Aakko
2020-03-22 20:36:12 UTC
Comment on attachment 126956 [details] A minimal test case for bug >\documentclass[a4paper,10pt]{article} > >\usepackage{ucs} >\usepackage[utf8]{inputenc} >\usepackage[finnish]{babel} >\usepackage{fontenc} > >\usepackage[dvips]{hyperref} > >\author{} >\date{22.3.2020} > >\begin{document} > \begin{abstract} > > \end{abstract} > >% BEGIN something >Here are some text describiing a new theorem. In the equation >\begin{equation} > E = mc^2 >\end{equation} >we have a solution for energy-mass equivalence. > >% END something > >% some comment BEGIN >Some text here >% some comment END >% END > >\end{document} Sorry for the noise (previous comment was not meant to be). I noticed as sending this bug, there is a workaround: add something (anything except space) between % and BEGIN and % and END. Anything, say, another % will suffice. Then Kile will be able to fold the blocks in question. Proposed patch: https://phabricator.kde.org/D29521 Git commit 0b6c88cfc16780cbbe8ccc1a9f5b0a796365a069 by Christoph Cullmann, on behalf of Nibaldo González. Committed on 09/05/2020 at 11:10. Pushed by cullmann into branch 'master'. LaTeX: fix folding in \end{...} and in regions markers BEGIN-END Summary: ## Fix folding in \end{...} In `\end{...}` the folding region "block" is terminated twice, which causes a folding error. {F8299444} ## Add folding in regions BEGIN/END Add code folding in the rules of the region markers BEGIN/END. The context "FindComments" is created with the rules of comments. Reviewers: #framework_syntax_highlighting, dhaumann, cullmann Reviewed By: #framework_syntax_highlighting, cullmann Subscribers: kwrite-devel, kde-frameworks-devel Tags: #kate, #frameworks Differential Revision: https://phabricator.kde.org/D29521 M +3 -3 autotests/folding/example.rmd.fold M +54 -30 autotests/folding/highlight.tex.fold M +24 -0 autotests/html/highlight.tex.html M +24 -0 autotests/input/highlight.tex M +24 -0 autotests/reference/highlight.tex.ref M +36 -35 data/syntax/latex.xml https://commits.kde.org/syntax-highlighting/0b6c88cfc16780cbbe8ccc1a9f5b0a796365a069 Fixed in KDE Frameworks 5.71.0, available on Sat June 13, 2020. |