multiline_strings.gd 562 B

123456789101112131415
  1. func test():
  2. var __ = """
  3. This is a standalone string, not a multiline comment.
  4. Writing both "double" quotes and 'simple' quotes is fine as
  5. long as there is only ""one"" or ''two'' of those in a row, not more.
  6. If you have more quotes, they need to be escaped like this: \"\"\"
  7. """
  8. __ = '''
  9. Another standalone string, this time with single quotes.
  10. Writing both "double" quotes and 'simple' quotes is fine as
  11. long as there is only ""one"" or ''two'' of those in a row, not more.
  12. If you have more quotes, they need to be escaped like this: \'\'\'
  13. '''