1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-03 21:29:01 +00:00

Formatter for Lua/NSE code.

This commit is contained in:
batrick
2012-08-11 02:45:14 +00:00
parent 1c328a01a4
commit b58d4c92d1
3 changed files with 420 additions and 0 deletions

8
docs/style/README Normal file
View File

@@ -0,0 +1,8 @@
lua-format:
This bash script uses lua-format.lua to indent and style Lua code
(including NSE scripts and libraries). You can use this to make
your script conform to the style guidelines for NSE.
In order to run the script, you need Lua 5.1 or Lua 5.2 installed as well
as LPeg. LPeg is a parsing expression grammar library which is basically a
far more powerful pattern matching utility than regular expressions.