Triple quoted string literals
Terminal symbol in the grammar: TRIPLESTR_LIT.
String literals can also be delimited by three double quotes “”” … “””. Literals in this form may run for several lines, may contain “ and do not interpret any escape sequences. For convenience, when the opening “”” is followed by a newline (there may be whitespace between the opening “”” and the newline), the newline (and the preceding whitespace) is not included in the string. The ending of the string literal is defined by the pattern “””[^”], so this:
""""long string within quotes""""
Produces:
"long string within quotes"
当前内容版权归 nim-lang.org 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 nim-lang.org .