lean2/tests/lua/format2.lua
Leonardo de Moura cc17be1ef1 feat(lua): add is_* predicates
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-08 12:40:28 -08:00

4 lines
203 B
Lua

f = format(format("hello"):highlight('red'), line(), 1):group() .. space() .. (line() .. format("world")):nest(4)
assert(is_format(f))
assert(not is_format("hello"))
assert(not is_format(sexpr(10, 20)))