From 9eaf16b1cf54ee1371e18176b86a2371e357fe97 Mon Sep 17 00:00:00 2001 From: Paul Iannetta Date: Thu, 31 Oct 2019 18:29:12 +0100 Subject: add custom syntax files --- .config/nvim/syntax/texlog.vim | 95 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 .config/nvim/syntax/texlog.vim (limited to '.config/nvim/syntax/texlog.vim') diff --git a/.config/nvim/syntax/texlog.vim b/.config/nvim/syntax/texlog.vim new file mode 100644 index 0000000..409c8a1 --- /dev/null +++ b/.config/nvim/syntax/texlog.vim @@ -0,0 +1,95 @@ +" Vim syntax file +" Language: TeX/LaTeX log +" Maintainer: glts <676c7473@gmail.com> +" Last Change: 2013-02-01 +" GetLatestVimScripts: 4421 1 :AutoInstall: texlog.vim + +if exists('b:current_syntax') + finish +endif + +syntax case match +syntax sync fromstart +syntax spell notoplevel + +setlocal iskeyword+=@-@ " @ is in keywords +setlocal iskeyword-=48-57,_ " digits and underscore are not in keywords + +syn cluster texlogFileGroup contains=@texlogMessageGroup,texStatement,texSpecialChar,texlogPageNumber +syn cluster texlogMessageGroup contains=texlogLaTeXInfo,texlogLaTeXWarning,texlogLaTeXError,texlogTeXError,texlogTeXWarning + +syn match texlogFirstline /^This is \S*TeX[^,]*, Version .\+$/ contains=texlogTeXDialect,texlogTeXVersion +syn match texlogTeXDialect /\S*TeX[^,]*\ze,/ contained +syn match texlogTeXVersion /\