From 06db7a65e7fe8e67116fba71dc41d78ec4da93b9 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 13 May 2022 10:17:59 +0800 Subject: fix issue #97. --- doc/docs/doc/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'doc') 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 +## Attributes + +The syntax support for Lua 5.4 attributes. + +```moonscript +const a = 123 +close _ = close#: -> print "Out of scope." +``` + +
+const a = 123
+close _ = close#: -> print "Out of scope."
+
+
+ ::: warning NOTICE 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. ::: -- cgit v1.2.3-55-g6feb