-
Notifications
You must be signed in to change notification settings - Fork 407
Including package luacode causes some legit brackets to mismatch #1958
Copy link
Copy link
Closed
Description
This was hard to narrow down!
Including package luacode causes some legitimate brackets to show as if they are unbalanced/unmatched/mismatched.
command
vim -u minimal.vim minimal.tex
minimal.vim
set nocompatible
let &runtimepath = '~/.vim/plugged/vimtex,' . &runtimepath
let &runtimepath .= ',~/.vim/plugged/vimtex/after'
filetype plugin indent on
syntax enableminimal.tex
Comment the line \usepackage{luacode} and load vim a second time to see that the problem doesn't occur if luacode is not included.
\documentclass[notitlepage,12pt]{article}
\usepackage{luacode}
\newcommand{\somecommand}{
\loop
\begingroup%
\directlua{loopcnt=loopcnt+1}%
\ifnum\somecount=1%
\directlua{prevcount=prevcount+\luastring{\pgfmathresult}}%
\else%
\directlua{prevcount=prevcount+\luastring{\someamt}}%
\fi%
\endgroup%
\if\someothercnt0%
\repeat%
\directlua{linecount=math.floor(prevcount)+1;}%
}screenshot
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
