Add luaescape script for Lua string literals
This commit is contained in:
parent
36a376a323
commit
7aab80084a
1 changed files with 3 additions and 0 deletions
3
bin/luaescape
Executable file
3
bin/luaescape
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env lua
|
||||||
|
|
||||||
|
print(string.format("%q", io.read("*a"):gsub("\n$", '')))
|
Loading…
Reference in a new issue