mirror of
https://github.com/pkulchenko/serpent.git
synced 2024-11-21 23:24:24 +00:00
Syntax highlight usage in README
This commit is contained in:
parent
179fb66468
commit
a10c80a6e3
@ -22,7 +22,7 @@ Lua serializer and pretty printer.
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```
|
```lua
|
||||||
local serpent = require("serpent")
|
local serpent = require("serpent")
|
||||||
local a = {1, nil, 3, x=1, ['true'] = 2, [not true]=3}
|
local a = {1, nil, 3, x=1, ['true'] = 2, [not true]=3}
|
||||||
a[a] = a -- self-reference with a table as key and value
|
a[a] = a -- self-reference with a table as key and value
|
||||||
|
Loading…
Reference in New Issue
Block a user