diff options
Diffstat (limited to 'doc/docs/doc/README.md')
| -rwxr-xr-x | doc/docs/doc/README.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/docs/doc/README.md b/doc/docs/doc/README.md index c772765..1e55c07 100755 --- a/doc/docs/doc/README.md +++ b/doc/docs/doc/README.md | |||
| @@ -1222,6 +1222,21 @@ catch err | |||
| 1222 | </pre> | 1222 | </pre> |
| 1223 | </YueDisplay> | 1223 | </YueDisplay> |
| 1224 | 1224 | ||
| 1225 | ## Attributes | ||
| 1226 | |||
| 1227 | The syntax support for Lua 5.4 attributes. | ||
| 1228 | |||
| 1229 | ```moonscript | ||
| 1230 | const a = 123 | ||
| 1231 | close _ = close#: -> print "Out of scope." | ||
| 1232 | ``` | ||
| 1233 | <YueDisplay> | ||
| 1234 | <pre> | ||
| 1235 | const a = 123 | ||
| 1236 | close _ = close#: -> print "Out of scope." | ||
| 1237 | </pre> | ||
| 1238 | </YueDisplay> | ||
| 1239 | |||
| 1225 | ::: warning NOTICE | 1240 | ::: warning NOTICE |
| 1226 | The rest of the document is describing mostly the same syntax taken from Moonscript. So you may as well refer to the [Moonscript Reference](http://moonscript.org/reference) to get the same explanation. | 1241 | The rest of the document is describing mostly the same syntax taken from Moonscript. So you may as well refer to the [Moonscript Reference](http://moonscript.org/reference) to get the same explanation. |
| 1227 | ::: | 1242 | ::: |
