Add luaescape script for Lua string literals

This commit is contained in:
Talia 2021-02-15 08:48:18 +01:00
parent 36a376a323
commit 7aab80084a

3
bin/luaescape Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env lua
print(string.format("%q", io.read("*a"):gsub("\n$", '')))