Skip to content

Support multiline string syntax #80

@fourls

Description

@fourls

Prerequisites

  • This improvement has not already been suggested.
  • This improvement would be generally useful, not specific to my code or setup.

Engine area

Delphi language support

Improvement description

Delphi 12 supports multiline strings using triple quotes (''') as follows:

  • The closing ''' must be on a line of its own.
  • The indentation of the closing ''' determines the base indentation of the entire string.
  • None of the lines can be less indented than the base indentation.
  • The last newline before the closing ''' is omitted.
  • Any odd number of quotes can be used, to allow the inclusion of triple quotes in the string text.

For more details, see the official documentation and Marco Cantu's blog post introducing the feature.

Rationale

This is required to parse Delphi 12 code.

Metadata

Metadata

Assignees

Labels

engineImprovements to the core engineenhancementImprovements to an existing feature

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions