aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-05-13 10:17:59 +0800
committerLi Jin <dragon-fly@qq.com>2022-05-13 10:17:59 +0800
commit06db7a65e7fe8e67116fba71dc41d78ec4da93b9 (patch)
tree77b58112bf9a28f1f6c1892427e7ca1d80d802ec /doc
parentb5153486a948dcb0a35cf8847ced394b2ff8edec (diff)
downloadyuescript-06db7a65e7fe8e67116fba71dc41d78ec4da93b9.tar.gz
yuescript-06db7a65e7fe8e67116fba71dc41d78ec4da93b9.tar.bz2
yuescript-06db7a65e7fe8e67116fba71dc41d78ec4da93b9.zip
fix issue #97.
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/docs/doc/README.md15
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
1227The syntax support for Lua 5.4 attributes.
1228
1229```moonscript
1230const a = 123
1231close _ = close#: -> print "Out of scope."
1232```
1233<YueDisplay>
1234<pre>
1235const a = 123
1236close _ = close#: -> print "Out of scope."
1237</pre>
1238</YueDisplay>
1239
1225::: warning NOTICE 1240::: warning NOTICE
1226The 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. 1241The 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:::