-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge: add full syntax support to Vimtex
This PR brings full syntax support to Vimtex. As a major and partly breaking change, it marks the start of version 2.0. refer: #1834
- Loading branch information
Showing
117 changed files
with
2,768 additions
and
2,339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,40 +4,6 @@ | |
" Email: [email protected] | ||
" | ||
|
||
function! vimtex#syntax#init() abort " {{{1 | ||
" This script is a fork of version 119 (dated 2020-06-29) of the syntax script | ||
" "tex.vim" created and maintained by Charles E. Campbell [0]. | ||
" | ||
" [0]: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TEX | ||
|
||
if exists('b:current_syntax') | ||
return | ||
elseif !get(g:, 'vimtex_syntax_alpha') | ||
source $VIMRUNTIME/syntax/tex.vim | ||
return | ||
endif | ||
|
||
call vimtex#syntax#core#init() | ||
endfunction | ||
|
||
" }}}1 | ||
function! vimtex#syntax#init_post() abort " {{{1 | ||
if !get(g:, 'vimtex_syntax_enabled', 1) | return | endif | ||
|
||
" The following ensures that syntax addons are not loaded until after the | ||
" filetype plugin has been sourced. See e.g. #1428 for more info. | ||
if exists('b:vimtex') | ||
call vimtex#syntax#after#load() | ||
else | ||
augroup vimtex_syntax | ||
autocmd! | ||
autocmd User VimtexEventInitPost call vimtex#syntax#after#load() | ||
augroup END | ||
endif | ||
endfunction | ||
|
||
" }}}1 | ||
|
||
function! vimtex#syntax#stack(...) abort " {{{1 | ||
let l:pos = a:0 > 0 ? [a:1, a:2] : [line('.'), col('.')] | ||
if mode() ==# 'i' | ||
|
@@ -60,7 +26,7 @@ endfunction | |
|
||
" }}}1 | ||
function! vimtex#syntax#in_mathzone(...) abort " {{{1 | ||
return call('vimtex#syntax#in', ['texMathZone'] + a:000) | ||
return call('vimtex#syntax#in', ['texMathRegion'] + a:000) | ||
endfunction | ||
|
||
" }}}1 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.