From 4aa445e37e44ba8241a18512e0d47272bca37493 Mon Sep 17 00:00:00 2001 From: Chris Lane <925091+ChrisLane@users.noreply.github.com> Date: Sun, 25 Mar 2018 17:52:29 +0100 Subject: [PATCH] Fix root file comment matching The root file comment is referenced everywhere as being uppercase "TEX", this commit changes the regex from lowercase to uppercase. --- plugin/latexlivepreview.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/latexlivepreview.vim b/plugin/latexlivepreview.vim index f4a315a..d732ebb 100644 --- a/plugin/latexlivepreview.vim +++ b/plugin/latexlivepreview.vim @@ -107,7 +107,7 @@ EEOOFF " eventually fallback to the current file. " TODO: emulate -parse-first-line properly let l:root_line = substitute(getline(1), - \ '\v^\s*\%\s*!tex\s*root\s*\=\s*(.*)\s*$', + \ '\v^\s*\%\s*!TEX\s*root\s*\=\s*(.*)\s*$', \ '\1', '') if (a:0 > 0) let l:root_file = fnamemodify(a:1, ':p')