diff options
Diffstat (limited to 'doc/docs/doc/language-basics/comment.md')
| -rw-r--r-- | doc/docs/doc/language-basics/comment.md | 30 |
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 | |||
| 6 | str = --[[ | ||
| 7 | This is a multi-line comment. | ||
| 8 | It's OK. | ||
| 9 | ]] strA \ -- comment 1 | ||
| 10 | .. strB \ -- comment 2 | ||
| 11 | .. strC | ||
| 12 | |||
| 13 | func --[[port]] 3000, --[[ip]] "192.168.1.1" | ||
| 14 | ``` | ||
| 15 | <YueDisplay> | ||
| 16 | |||
| 17 | ```yue | ||
| 18 | -- I am a comment | ||
| 19 | |||
| 20 | str = --[[ | ||
| 21 | This is a multi-line comment. | ||
| 22 | It's OK. | ||
| 23 | ]] strA \ -- comment 1 | ||
| 24 | .. strB \ -- comment 2 | ||
| 25 | .. strC | ||
| 26 | |||
| 27 | func --[[port]] 3000, --[[ip]] "192.168.1.1" | ||
| 28 | ``` | ||
| 29 | |||
| 30 | </YueDisplay> | ||
