diff options
author | Li Jin <dragon-fly@qq.com> | 2022-05-13 10:17:59 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-05-13 10:17:59 +0800 |
commit | 06db7a65e7fe8e67116fba71dc41d78ec4da93b9 (patch) | |
tree | 77b58112bf9a28f1f6c1892427e7ca1d80d802ec /doc | |
parent | b5153486a948dcb0a35cf8847ced394b2ff8edec (diff) | |
download | yuescript-06db7a65e7fe8e67116fba71dc41d78ec4da93b9.tar.gz yuescript-06db7a65e7fe8e67116fba71dc41d78ec4da93b9.tar.bz2 yuescript-06db7a65e7fe8e67116fba71dc41d78ec4da93b9.zip |
fix issue #97.
Diffstat (limited to 'doc')
-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 | ::: |