% !TeX program = lualatex
% !TeX encoding = utf-8
% !TeX spellcheck = 
% usage: pdflatex | lualatex | xelatex

% characters <, > or tab within the mplibcode environment --> FAILURE
\listfiles
\documentclass{article}
\usepackage{luamplib}
\begin{document}
\begin{mplibcode}
%% comment with > or <
beginfig(1);
   fill fullcircle scaled 20;%% indentation with a tab
endfig;
\end{mplibcode}
\end{document}

% reading the same MetaPost code from a file --> OK
\listfiles
\begin{filecontents*}{test.mp}
%% comment with > or <
beginfig(1);
	fill fullcircle scaled 20;%% indentation with a tab
endfig;
\end{filecontents*}
\documentclass{article}
\usepackage{luamplib}
\begin{document}
\begin{mplibcode}
input test.mp; 
\end{mplibcode}
\end{document}


\listfiles
\documentclass{minimal}
%\documentclass{article}
\usepackage{luamplib}
\begin{document}
%\pagestyle{empty}
\begin{mplibcode}
input lsys11.mp; 
\end{mplibcode}
\end{document}
