[vim] 04/10: Revert "Add recognition of more LaTeX commands for tex filetype detection"

James McCoy jamessan at debian.org
Mon Aug 8 04:49:33 UTC 2016


This is an automated email from the git hooks/post-receive script.

jamessan pushed a commit to branch debian/sid
in repository vim.

commit af0e7b3498762e9a2db1a798cd6b44947776af19
Author: James McCoy <jamessan at debian.org>
Date:   Sun Aug 7 15:34:09 2016 -0400

    Revert "Add recognition of more LaTeX commands for tex filetype detection"
    
    This reverts commit eaba86c3e6dbe0c721d912dce4024d6b1a9b432a so that it
    can be managed by gbp-pq instead.
    
    Signed-off-by: James McCoy <jamessan at debian.org>
---
 runtime/filetype.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index cc0496f..9927571 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -2214,7 +2214,7 @@ func! s:FTtex()
     call cursor(1,1)
     let firstNC = search('^\s*[^[:space:]%]', 'c', 1000)
     if firstNC " Check the next thousand lines for a LaTeX or ConTeXt keyword.
-      let lpat = 'documentclass\>\|usepackage\>\|begin{\|newcommand\>\|renewcommand\>\|part\>\|chapter\>\|section\>\|subsection\>\|subsubsection\>\|paragraph\>\|subparagraph\>\|subsubparagraph'
+      let lpat = 'documentclass\>\|usepackage\>\|begin{\|newcommand\>\|renewcommand\>'
       let cpat = 'start\a\+\|setup\a\+\|usemodule\|enablemode\|enableregime\|setvariables\|useencoding\|usesymbols\|stelle\a\+\|verwende\a\+\|stel\a\+\|gebruik\a\+\|usa\a\+\|imposta\a\+\|regle\a\+\|utilisemodule\>'
       let kwline = search('^\s*\\\%(' . lpat . '\)\|^\s*\\\(' . cpat . '\)',
 			      \ 'cnp', firstNC + 1000)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vim/vim.git



More information about the pkg-vim-maintainers mailing list