[Vim-latex-devel] Bug: folding preambles with multi-line document class
Brought to you by:
srinathava,
tmaas
From: Felix K. <kue...@gm...> - 2020-05-05 08:44:52
|
Hello vim-latex developers, there is a bug in the folding functionality of the current version of vim-latex. When the \documentclass command spreads across multiple lines, the preamble is not folded by vim-latex. Consider the following example (also attached): %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % fold_bug.tex \documentclass[ %draft, 12pt, ]{article} % This should be folded, but actually isn't :-( \usepackage[T1]{fontenc} % font encoding \begin{document} \section{Example section} This is the document body. It will be properly folded. \end{document} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Here, the \section is folded correctly, but the preamble is not. When putting the \documentclass entirely on one line, i.e., write: \documentclass[12pt,]{article} folding of the preamble works correctly. But then, obviously, one cannot state options line-wise, include comments, or comment out option. It would be great if this bug could be fixed. Thanks for your efforts. ~Felix |