aboutsummaryrefslogtreecommitdiff
path: root/doc/docs/doc/language-basics/comment.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/docs/doc/language-basics/comment.md')
-rw-r--r--doc/docs/doc/language-basics/comment.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/docs/doc/language-basics/comment.md b/doc/docs/doc/language-basics/comment.md
new file mode 100644
index 0000000..b67c97d
--- /dev/null
+++ b/doc/docs/doc/language-basics/comment.md
@@ -0,0 +1,30 @@
1# Comment
2
3```yuescript
4-- I am a comment
5
6str = --[[
7This is a multi-line comment.
8It's OK.
9]] strA \ -- comment 1
10 .. strB \ -- comment 2
11 .. strC
12
13func --[[port]] 3000, --[[ip]] "192.168.1.1"
14```
15<YueDisplay>
16
17```yue
18-- I am a comment
19
20str = --[[
21This is a multi-line comment.
22It's OK.
23]] strA \ -- comment 1
24 .. strB \ -- comment 2
25 .. strC
26
27func --[[port]] 3000, --[[ip]] "192.168.1.1"
28```
29
30</YueDisplay>