Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Allow quotes and newlines in string literal #88

Merged
merged 1 commit into from
Mar 1, 2017

Conversation

filiph
Copy link
Contributor

@filiph filiph commented Mar 1, 2017

Allows creating string literals like “hello 'world'” and multiline string literals:

var s = '''hello
world''';

This change assumes that users of this package provide string literals like they would provide raw text (r"text" in normal Dart). Since we escape ', we also escape \, and therefore every other magic sequence (including \n, \t etc.). I think that's a reasonable assumption.

Allows creating string literals like “hello ‘world’” and “””hello\nworld”””.
@matanlurey matanlurey merged commit d1d4194 into dart-archive:master Mar 1, 2017
mosuem pushed a commit to dart-lang/tools that referenced this pull request Oct 25, 2024
…r#88)

Allows creating string literals like “hello ‘world’” and “””hello\nworld”””.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants