mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
(latex-mode): Recognize \item etc. that have no arg
because only a comment follows.
This commit is contained in:
parent
0704eec933
commit
22378c0edb
@ -395,10 +395,10 @@ subshell is initiated, `tex-shell-hook' is run."
|
||||
^\\\\chapter\\>\\|^\\\\section\\>\\|\
|
||||
^\\\\subsection\\>\\|^\\\\subsubsection\\>\\|\
|
||||
^\\\\paragraph\\>\\|^\\\\subparagraph\\>\\|\
|
||||
^\\\\item[ \t]*$\\|^\\\\bibitem[ \t]*$\\|^\\\\newline[ \t]*$\\|^\\\\noindent[ \t]*$\\|\
|
||||
^\\\\[a-z]*space[ \t]*$\\|^\\\\[a-z]*skip[ \t]*$\\|\
|
||||
^\\\\newpage[ \t]*$\\|^\\\\[a-z]*page[a-z]*[ \t]*$\\|^\\\\footnote[ \t]*$\\|\
|
||||
^\\\\marginpar[ \t]*$\\|^\\\\parbox[ \t]*$\\|^\\\\caption[ \t]*$")
|
||||
\\(^\\\\item\\|^\\\\bibitem\\|^\\\\newline\\|^\\\\noindent\\|\
|
||||
^\\\\[a-z]*space\\|^\\\\[a-z]*skip\\|\
|
||||
^\\\\newpage\\|^\\\\[a-z]*page[a-z]*\\|^\\\\footnote\\|\
|
||||
^\\\\marginpar\\|^\\\\parbox\\|^\\\\caption\\)[ \t]*\\($\\|%\\)")
|
||||
(run-hooks 'text-mode-hook 'tex-mode-hook 'latex-mode-hook))
|
||||
|
||||
;;;###autoload
|
||||
|
Loading…
Reference in New Issue
Block a user