superscriptjs / superscript

A dialogue engine for creating chat bots
http://superscriptjs.com
MIT License
1.65k stars 209 forks source link

how to add comments in superscript #328

Closed hailiang-wang closed 7 years ago

hailiang-wang commented 7 years ago

Description

Sometimes, I would like to add comment in the script. A common usage is the maintainer information.

Solution

Does superscript support some lines as comment? Such as

" [design] foo 
" [maintainer] bar
" [date] 2017-03-18

> topic t1 {keep} {system} (animals)

+ hello
- hi

<
silentrob commented 7 years ago

Yes both single line and multi line comments are supported. // this is a comment

/*
This is also a comment
*/
silentrob commented 7 years ago

I noticed I litter the examples in the wiki with comments but don't actually document them specifically.

silentrob commented 7 years ago

Wiki updated.