Lua ended up as a "DSL" in a ton of places for general scripting applications etc. When I say "DSL" I get that it's not, I'm just generalizing as to the type of solutions that I've personally seen Lua leveraged. With this sorta "Lua in random places" bit I feel lots of us have ran into it.
When comparing Pascal to Lua I would be more comfortable with Lua for a modern solution - I would posit that very little greenfield development is happening in Pascal. Lua continues to be present in-industry.
This entire comment is anecdotal and based on personal experience.