pgf-tikz / pgf

A Portable Graphic Format for TeX
https://pgf-tikz.github.io/
1.08k stars 104 forks source link

Give better error message if `;` after tikzmath function definition is missing #1320

Open user202729 opened 2 months ago

user202729 commented 2 months ago

Brief outline of the proposed feature

Currently if a function declaration in tikzmath command does not have the trailing ;, the error message is incomprehensible.

I think that compared to C style programming languages, it is not common to expect a function declaration (unlike struct declaration) to have a trailing ;.

It would be better to give a better error message than the current behavior (the current behavior is highly dependent on what follows it)

Usage example

No response