D29521: LaTeX: fix folding in \end{...} and in regions markers BEGIN-END

Nibaldo González <[email protected]>
Newsgroups gmane.comp.kde.devel.frameworks,gmane.comp.kde.devel.kwrite
Message-ID <[email protected]>
nibags created this revision.
nibags added reviewers: Framework: Syntax Highlighting, dhaumann, cullmann.
Herald added projects: Kate, Frameworks.
Herald added subscribers: kde-frameworks-devel, kwrite-devel.
nibags requested review of this revision.

REVISION SUMMARY
  BUG: 419125
  
  Fix folding in \end{...}
  ------------------------
  
  In `\end{...}` the folding region "block" is terminated twice, which causes a folding error.
  
  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.

REPOSITORY
  R216 Syntax Highlighting

BRANCH
  fix-folding-latex

REVISION DETAIL
  https://phabricator.kde.org/D29521

AFFECTED FILES
  autotests/folding/example.rmd.fold
  autotests/folding/highlight.tex.fold
  autotests/html/highlight.tex.html
  autotests/input/highlight.tex
  autotests/reference/highlight.tex.ref
  data/syntax/latex.xml

To: nibags, #framework_syntax_highlighting, dhaumann, cullmann
Cc: kwrite-devel, kde-frameworks-devel, rrosch, LeGast00n, cblack, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.