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
1 changed files with 3 additions and 0 deletions

3
bin/luaescape Executable file
View File

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